Merge pull request #765 from richardbeare/RexternCRemove
This changes the location of the R includes to match what is required from the documentation by moving C++ includes outside of the extern "C" block.
This commit is contained in:
commit
1fcbf07441
1 changed files with 11 additions and 11 deletions
|
|
@ -1,15 +1,4 @@
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
#include <exception>
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* for raw pointer */
|
|
||||||
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_R_ConvertPtr(obj, pptr, type, flags)
|
|
||||||
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_R_ConvertPtr(obj, pptr, type, flags)
|
|
||||||
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_R_NewPointerObj(ptr, type, flags)
|
|
||||||
|
|
||||||
|
|
||||||
/* Remove global namespace pollution */
|
/* Remove global namespace pollution */
|
||||||
#if !defined(SWIG_NO_R_NO_REMAP)
|
#if !defined(SWIG_NO_R_NO_REMAP)
|
||||||
# define R_NO_REMAP
|
# define R_NO_REMAP
|
||||||
|
|
@ -20,6 +9,17 @@ extern "C" {
|
||||||
|
|
||||||
#include <Rdefines.h>
|
#include <Rdefines.h>
|
||||||
#include <Rversion.h>
|
#include <Rversion.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <exception>
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* for raw pointer */
|
||||||
|
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_R_ConvertPtr(obj, pptr, type, flags)
|
||||||
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_R_ConvertPtr(obj, pptr, type, flags)
|
||||||
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_R_NewPointerObj(ptr, type, flags)
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue