Apply small includes patch for FreeBSD. Thanks kimelto!

This commit is contained in:
Christian Kamm
2009-04-02 19:16:44 +02:00
parent ff72b1f640
commit 8d01068c9b
2 changed files with 11 additions and 15 deletions

View File

@@ -41,17 +41,13 @@
//#define signbit 56
#endif
#if __APPLE__
static double zero = 0;
#elif __MINGW32__
static double zero = 0;
#elif __GNUC__
#if __GNUC__
#if !(defined (__SVR4) && defined (__sun))
#include <bits/nan.h>
#include <bits/mathdef.h>
#endif
static double zero = 0;
#endif
static double zero = 0;
#include "rmem.h"

View File

@@ -9,7 +9,12 @@
// See the included readme.txt for details.
#define __USE_ISOC99 1 // so signbit() gets defined
#ifdef __DMC__
#include <math.h>
#else
#include <cmath>
#endif
#include <stdio.h>
#include <assert.h>
@@ -31,18 +36,13 @@
//#define signbit 56
#endif
#if __APPLE__
#include <cmath>
static double zero = 0;
#elif __MINGW32__
#include <cmath>
static double zero = 0;
#elif __GNUC__
#include <cmath>
#if __GNUC__
#if !(defined (__SVR4) && defined (__sun))
#include <bits/nan.h>
#include <bits/mathdef.h>
static double zero = 0;
#endif
#endif
static double zero = 0;
#include "mem.h"