Commit 3b3b5e27 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

nanoflann: changed cmath to math.h (cmath causes problems with isnan()).

parent a4356a82
......@@ -22,9 +22,10 @@
#include "config.h"
#endif
#include <string.h>
#include <math.h>
#if defined(__xlC__) /* performance problems on IBM */
#ifdef __xlC__ /* performance problem on IBM */
#ifndef DBL_IS_NAN
# define DBL_IS_NAN(x) ((x) != (x))
#endif
......
......@@ -54,7 +54,8 @@
#include <stdexcept>
#include <cstdio> // for fwrite()
#define _USE_MATH_DEFINES // Required by MSVC to define M_PI,etc. in <cmath>
#include <cmath> // for abs()
// Uwe Schulzweida: changed cmath to math.h (cmath causes problems with isnan())
#include <math.h> // for abs()
#include <cstdlib> // for abs()
#include <limits>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment