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:
William S Fulton 2005-11-10 21:19:05 +00:00
commit 85edd7cab8
2 changed files with 13 additions and 4 deletions

View file

@ -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.
* *

View file

@ -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 */