From 0362693bd24f9eb7f3c0c6c9d648ff9738364743 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 12 Nov 2007 22:21:11 +0000 Subject: [PATCH] Go back to extern C around R headers as per recommendation git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10119 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/r/rrun.swg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)