File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,14 @@ const char *Swig_package_version(void) {
70
70
71
71
String * Swig_package_version_hex (void ) {
72
72
String * package_version = NewString (Swig_package_version ());
73
- char * token = strtok ( Char ( package_version ), "." ) ;
73
+ char * token ;
74
74
String * vers = NewString ("SWIG_VERSION 0x" );
75
75
int count = 0 ;
76
+ if (token = strstr (Char (package_version ), "+" )) {
77
+ // Remove '+' suffix
78
+ * token = '\0' ;
79
+ }
80
+ token = strtok (Char (package_version ), "." );
76
81
while (token ) {
77
82
int len = (int )strlen (token );
78
83
assert (len == 1 || len == 2 );
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
2
2
dnl The macros which aren't shipped with the autotools are stored in the
3
3
dnl Tools/config directory in .m4 files.
4
4
5
- AC_INIT ( [ swig] ,[ 4.1.0] ,[ https://www.swig.org] )
5
+ AC_INIT ( [ swig] ,[ 4.1.0+fortran ] ,[ https://www.swig.org] )
6
6
AC_PREREQ ( [ 2.60] )
7
7
8
8
AC_CONFIG_SRCDIR ( [ Source/Swig/swig.h] )
You can’t perform that action at this time.
0 commit comments