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 <stdio.h>
#if !defined(linux) && (defined (__sparc) || defined (__sparc__))
#if (defined (__sun__) || defined (__sun)) || (!defined(linux) && (defined (__sparc) || defined (__sparc__)))
#include <ieeefp.h>
#endif
// just use default rounding for platforms where its not available
#ifndef round
#define round(x) (x)
#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
*****************************************************************************/

View File

@@ -11,15 +11,10 @@
#include "solver_relax.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>
#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
/*****************************************************************************/

View File

@@ -13,14 +13,10 @@
#include "loop_tools.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>
#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 */