From 8c9ab3abf72b7fd026c9e64edc21eef362687441 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/SWIG@7912 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/swigarch.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/swigarch.i b/Lib/swigarch.i index df4f2fcc6..019462f24 100644 --- a/Lib/swigarch.i +++ b/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 %}