add __WORDSIZE test

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-01 07:10:06 +00:00
commit 49f8cc726d

View file

@ -39,7 +39,7 @@
#ifndef LONG_MAX
#include <limits.h>
#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 <limits.h>
#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
%}