Skip to content

Commit 4c5d654

Browse files
committed
Add '+fortran' to version suffix
This reverts commit bacf63c
1 parent 91c7b05 commit 4c5d654

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Source/Swig/misc.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,14 @@ const char *Swig_package_version(void) {
7070

7171
String *Swig_package_version_hex(void) {
7272
String *package_version = NewString(Swig_package_version());
73-
char *token = strtok(Char(package_version), ".");
73+
char *token;
7474
String *vers = NewString("SWIG_VERSION 0x");
7575
int count = 0;
76+
if (token = strstr(Char(package_version), "+")) {
77+
// Remove '+' suffix
78+
*token = '\0';
79+
}
80+
token = strtok(Char(package_version), ".");
7681
while (token) {
7782
int len = (int)strlen(token);
7883
assert(len == 1 || len == 2);

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.1.0],[https://www.swig.org])
5+
AC_INIT([swig],[4.1.0+fortran],[https://www.swig.org])
66
AC_PREREQ([2.60])
77

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

0 commit comments

Comments
 (0)