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:
parent
c938c47442
commit
49f8cc726d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue