include <ieeefp.h> on solaris and remove incorrect macro so finite() is now correct

This commit is contained in:
Campbell Barton
2007-12-14 15:36:11 +00:00
parent f1b78cb4da
commit 3319ecdcd1
3 changed files with 3 additions and 18 deletions

View File

@@ -13,21 +13,15 @@
#include <algorithm> #include <algorithm>
#include <stdio.h> #include <stdio.h>
#if !defined(linux) && (defined (__sparc) || defined (__sparc__)) #if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
#include <ieeefp.h> #include <ieeefp.h>
#endif #endif
// just use default rounding for platforms where its not available // just use default rounding for platforms where its not available
#ifndef round #ifndef round
#define round(x) (x) #define round(x) (x)
#endif #endif
// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
#ifndef finite
# define finite(x) (x>=0.0)
#endif
/****************************************************************************** /******************************************************************************
* Constructor * Constructor
*****************************************************************************/ *****************************************************************************/

View File

@@ -11,15 +11,10 @@
#include "solver_relax.h" #include "solver_relax.h"
#include "particletracer.h" #include "particletracer.h"
#if !defined(linux) && (defined (__sparc) || defined (__sparc__)) #if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
#include <ieeefp.h> #include <ieeefp.h>
#endif #endif
// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
#ifndef finite
# define finite(x) (x>=0.0)
#endif
/*****************************************************************************/ /*****************************************************************************/
//! coarse step functions //! coarse step functions
/*****************************************************************************/ /*****************************************************************************/

View File

@@ -13,14 +13,10 @@
#include "loop_tools.h" #include "loop_tools.h"
#include <stdlib.h> #include <stdlib.h>
#if !defined(linux) && (defined (__sparc) || defined (__sparc__)) #if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
#include <ieeefp.h> #include <ieeefp.h>
#endif #endif
// GCC 3.4.3 on solaris 10 dosnt have finite, win32 also just does this
#ifndef finite
# define finite(x) (x>=0.0)
#endif
/*****************************************************************************/ /*****************************************************************************/
/*! perform a single LBM step */ /*! perform a single LBM step */