Skip to content

Commit d49138f

Browse files
committed
Add '+fortran' to version suffix
1 parent 9332ab2 commit d49138f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Source/Modules/main.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,10 @@ int SWIG_main(int argc, char *argv[], const TargetLanguageModule *tlm) {
903903

904904
// Set the SWIG version value in format 0xAABBCC from package version expected to be in format A.B.C
905905
String *package_version = NewString(PACKAGE_VERSION); /* Note that the fakeversion has not been set at this point */
906+
if (char *token = strstr(Char(package_version), "+")) {
907+
// Remove '+' suffix
908+
*token = '\0';
909+
}
906910
char *token = strtok(Char(package_version), ".");
907911
String *vers = NewString("SWIG_VERSION 0x");
908912
int count = 0;

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
22
dnl The macros which aren't shipped with the autotools are stored in the
33
dnl Tools/config directory in .m4 files.
44

5-
AC_INIT([swig],[4.0.2],[http://www.swig.org])
5+
AC_INIT([swig],[4.0.2+fortran],[http://www.swig.org])
66
AC_PREREQ(2.60)
77

88
AC_CONFIG_SRCDIR([Source/Swig/swig.h])

0 commit comments

Comments
 (0)