add limits.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d79b9fcf4c
commit
29805f856f
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,9 @@
|
|||
#ifdef SWIGWORDSIZE32
|
||||
%{
|
||||
#define SWIGWORDSIZE32
|
||||
#ifndef LONG_MAX
|
||||
#include <limits.h>
|
||||
#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 <limits.h>
|
||||
#endif
|
||||
#if 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