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