Add code back in that has recently gone missing, needed for windows
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4e834b1ccb
commit
85edd7cab8
2 changed files with 13 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* perlrun.swg
|
* perlrun.swg
|
||||||
*
|
*
|
||||||
* This file contains the runtime support for Ruby modules
|
* This file contains the runtime support for Perl modules
|
||||||
* and includes code for managing global variables and pointer
|
* and includes code for managing global variables and pointer
|
||||||
* type checking.
|
* type checking.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,23 @@
|
||||||
%insert(runtime) %{
|
%insert(runtime) %{
|
||||||
|
|
||||||
#include <EXTERN.h>
|
#ifdef __cplusplus
|
||||||
#include <perl.h>
|
/* Needed on some windows machines---since MS plays funny games with the header files under C++ */
|
||||||
#include <XSUB.h>
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
#include "EXTERN.h"
|
||||||
|
#include "perl.h"
|
||||||
|
#include "XSUB.h"
|
||||||
|
|
||||||
#ifndef pTHX_
|
#ifndef pTHX_
|
||||||
#define pTHX_
|
#define pTHX_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Macro to call an XS function */
|
/* Macro to call an XS function */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue