diff --git a/Lib/r/rrun.swg b/Lib/r/rrun.swg index 459d74913..55a5d7de2 100644 --- a/Lib/r/rrun.swg +++ b/Lib/r/rrun.swg @@ -1,4 +1,8 @@ +#ifdef __cplusplus +extern "C" { +#endif + /* Remove global namespace pollution */ #if !defined(SWIG_NO_R_NO_REMAP) # define R_NO_REMAP @@ -8,10 +12,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - #define SWIGR 1 #if R_VERSION >= R_Version(2,6,0)