add limits.h

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-01 07:02:18 +00:00
commit 29805f856f

View file

@ -36,6 +36,9 @@
#ifdef SWIGWORDSIZE32
%{
#define SWIGWORDSIZE32
#ifndef LONG_MAX
#include <limits.h>
#endif
#if LONG_MAX != INT_MAX
# error "SWIG wrapped code invalid in 64 bit architecture, regenarete code using -DSWIGWORDSIZE64"
#endif
@ -45,6 +48,9 @@
#ifdef SWIGWORDSIZE64
%{
#define SWIGWORDSIZE64
#ifndef LONG_MAX
#include <limits.h>
#endif
#if LONG_MAX == INT_MAX
# error "SWIG wrapped code invalid in 32 bit architecture, regenarete code using -DSWIGWORDSIZE32"
#endif