From 49f8cc726d230316e5fe40a0f9683bce3644aa75 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 1 Dec 2005 07:10:06 +0000 Subject: [PATCH] add __WORDSIZE test git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7912 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/swigarch.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SWIG/Lib/swigarch.i b/SWIG/Lib/swigarch.i index df4f2fcc6..019462f24 100644 --- a/SWIG/Lib/swigarch.i +++ b/SWIG/Lib/swigarch.i @@ -39,7 +39,7 @@ #ifndef LONG_MAX #include #endif -#if LONG_MAX != INT_MAX +#if (__WORDSIZE == 64) || (LONG_MAX != INT_MAX) # error "SWIG wrapped code invalid in 64 bit architecture, regenarete code using -DSWIGWORDSIZE64" #endif %} @@ -51,7 +51,7 @@ #ifndef LONG_MAX #include #endif -#if LONG_MAX == INT_MAX +#if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX) # error "SWIG wrapped code invalid in 32 bit architecture, regenarete code using -DSWIGWORDSIZE32" #endif %}