Skip to content

Commit 029bc7f

Browse files
committed
REVERTME: add '+fortran' to version suffix
1 parent 9c4f2d3 commit 029bc7f

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
@@ -909,6 +909,10 @@ int SWIG_main(int argc, char *argv[], const TargetLanguageModule *tlm) {
909909

910910
// Set the SWIG version value in format 0xAABBCC from package version expected to be in format A.B.C
911911
String *package_version = NewString(PACKAGE_VERSION); /* Note that the fakeversion has not been set at this point */
912+
if (char *token = strstr(Char(package_version), "+")) {
913+
// Remove '+' suffix
914+
*token = '\0';
915+
}
912916
char *token = strtok(Char(package_version), ".");
913917
String *vers = NewString("SWIG_VERSION 0x");
914918
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.1.0],[http://www.swig.org])
5+
AC_INIT([swig],[4.1.0+fortran],[http://www.swig.org])
66
AC_PREREQ([2.60])
77

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

0 commit comments

Comments
 (0)