]> O.S.I.I.S - jp/vkvg.git/commitdiff
define isnanf macro if not yet done on linux
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 1 Sep 2020 15:36:36 +0000 (17:36 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 1 Sep 2020 15:36:36 +0000 (17:36 +0200)
src/cross_os.h

index b27537c14b9d3574d3df35fd73e4e0799797dce3..842a54962eb6a6272e31d894a0da277eab6430cf 100644 (file)
 
 //cross platform os helpers
 #if defined(_WIN32) || defined(_WIN64)
-//disable warning on iostream functions on windows
-#define _CRT_SECURE_NO_WARNINGS
-#include "windows.h"
-#define isnanf _isnanf
+       //disable warning on iostream functions on windows
+       #define _CRT_SECURE_NO_WARNINGS
+       #include "windows.h"
+       #define isnanf _isnanf
 #elif __APPLE__
 #elif __unix__
-#include <unistd.h>
-#include <sys/types.h>
-#include <pwd.h>
+       #include <unistd.h>
+       #include <sys/types.h>
+       #include <pwd.h>
+       #ifndef isnanf
+               #define isnanf __isnanf
+       #endif
 #endif
 
 const char* getUserDir ();