Better fix for isfinite problem - works in older gcc's too.
Previous fix relying on __cplusplus value didn't fix for older gcc's on linux, but this fix does.
This commit is contained in:
@@ -15,20 +15,19 @@
|
|||||||
#include "particletracer.h"
|
#include "particletracer.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#ifdef sun
|
#ifdef sun
|
||||||
#include "ieeefp.h"
|
#include "ieeefp.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __cplusplus < 201103L
|
|
||||||
#define isfinite finite
|
|
||||||
#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
|
||||||
|
|
||||||
|
using std::isfinite;
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Constructor
|
* Constructor
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
Reference in New Issue
Block a user