fix ifdef

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-23 09:29:26 +00:00
commit 2784abd610

View file

@ -205,7 +205,7 @@ SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double *d, double min, double max) {
double x = *d;
if (min <= x && x <= max) {
%#ifndef SWIG_HAS_NO_RINT
%#ifdef SWIG_HAS_NO_RINT
/* Use the python mechanism to round, or so */
double rd = (x < 0) ? ceil(x) : floor(x);
%#else