Attempt to fix FIXNUM

This commit is contained in:
Andy Cedilnik 2003-04-09 08:08:55 -04:00
parent 52141fb615
commit 7e67b8effb
1 changed files with 6 additions and 1 deletions

View File

@ -27,8 +27,13 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <math.h> #include <math.h>
#include <float.h>
#define FIXNUM(x) ((isnan(x))?((0)):((isinf(x))?(0):(x))) #ifdef _WIN32
# define FIXNUM(x) (_finite(x)?(x):(0))
#else
# define FIXNUM(x) (finite(x)?(x):(0))
#endif
#ifdef HAVE_CURL #ifdef HAVE_CURL
static struct tm* GetNightlyTime(std::string str) static struct tm* GetNightlyTime(std::string str)