Commit e594fba4 authored by Sylvain Thery's avatar Sylvain Thery

Ajout dans os_spec.h (a inclure partout !)

d'un define pour isnan sous windows
parent e795ca1a
#ifndef _CGoGN_OS_SPEC__
#define _CGoGN_OS_SPEC__
// SPECIFIC FOR WINDOWS
#ifdef WIN32
......@@ -7,7 +10,10 @@
#include <windows.h>
#include <stdio.h>
#include <limits>
#define _USE_MATH_DEFINES
#include <cmath>
#define isnan(X) _isnan(X)
//#ifndef PI_DEFINED
//#define PI_DEFINED
//double M_PI=3.14159265359;
......@@ -16,6 +22,4 @@
// SPECIFIC FOR MAC
// SPECIFIC UBUNTU ???
// for libDevil
#define ILUT_USE_OPENGL
#endif
\ No newline at end of file
......@@ -25,6 +25,8 @@
#ifndef __QEM__
#define __QEM__
#include "Utils/os_spec.h" // allow compilation under windows
#include "Geometry/vector_gen.h"
#include "Geometry/matrix.h"
#include "Geometry/plane_3d.h"
......@@ -153,9 +155,6 @@ private:
bool optimize(VEC4& v) const
{
#ifdef WIN32
#define isnan(X) _isnan(X)
#endif
if (isnan(A(0,0)))
return false ;
......
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