From 29805f856f6fa4f3be8e84e1e95c266186fc389e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 1 Dec 2005 07:02:18 +0000 Subject: [PATCH] add limits.h git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7911 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/swigarch.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/swigarch.i b/Lib/swigarch.i index d43bd756d..df4f2fcc6 100644 --- a/Lib/swigarch.i +++ b/Lib/swigarch.i @@ -36,6 +36,9 @@ #ifdef SWIGWORDSIZE32 %{ #define SWIGWORDSIZE32 +#ifndef LONG_MAX +#include +#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 +#endif #if LONG_MAX == INT_MAX # error "SWIG wrapped code invalid in 32 bit architecture, regenarete code using -DSWIGWORDSIZE32" #endif