Add code back in that has recently gone missing, needed for windows

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-11-10 21:19:05 +00:00
commit 5c8f751e80
2 changed files with 13 additions and 4 deletions

View file

@ -1,7 +1,7 @@
/***********************************************************************
* 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
* type checking.
*

View file

@ -1,14 +1,23 @@
%insert(runtime) %{
#include <EXTERN.h>
#include <perl.h>
#include <XSUB.h>
#ifdef __cplusplus
/* Needed on some windows machines---since MS plays funny games with the header files under C++ */
#include <math.h>
#include <stdlib.h>
extern "C" {
#endif
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifndef pTHX_
#define pTHX_
#endif
#include <string.h>
#ifdef __cplusplus
}
#endif
/* Macro to call an XS function */