From 6a0fbb5a2c8c167732f10e840f2d9a941b013a82 Mon Sep 17 00:00:00 2001 From: John Lenz Date: Thu, 4 Nov 2004 01:27:57 +0000 Subject: [PATCH] When compiling with gcc -ansi, inline was improperly getting set. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6651 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/common.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/common.swg b/Lib/common.swg index 4446b3b54..fe7f625a6 100644 --- a/Lib/common.swg +++ b/Lib/common.swg @@ -28,7 +28,7 @@ #define SWIGRUNTIME(x) static x #ifndef SWIGINLINE -#if defined(__cplusplus) || defined(__GNUC__) +#if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline #else # define SWIGINLINE