From 55148f29742cb999593129d751df08b275ba0198 Mon Sep 17 00:00:00 2001 From: sf17k Date: Sat, 12 May 2012 01:38:33 -0400 Subject: [PATCH] get it to compile on my mingw setup gcc's float.h is missing _fpclass(). mingw's float.h should work but for some reason it wasn't being used. using math.h fixes the problem. the linker was being passed .def files, so I removed those. --- CMakeLists.txt | 2 -- Source/WinDefs.h | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7b5f63..4ade1a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,9 +115,7 @@ set(LUGARU_H ${SRCDIR}/Settings.h ${SRCDIR}/Stereo.h ${SRCDIR}/Animation.h - ${SRCDIR}/Animation.def ${SRCDIR}/Sounds.h - ${SRCDIR}/Sounds.def ) if(UNIX) diff --git a/Source/WinDefs.h b/Source/WinDefs.h index 4cf515e..e7d0570 100644 --- a/Source/WinDefs.h +++ b/Source/WinDefs.h @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include -#include +#include // stuff to make Mac code compatable with Windows @@ -84,11 +84,13 @@ enum Duration AbsoluteDeltaToDuration( AbsoluteTime& a, AbsoluteTime& b); +/* inline bool isnormal( double x) { int ret = _fpclass( x); return (ret == _FPCLASS_NN || ret == _FPCLASS_PN); } +*/ typedef unsigned int uintptr_t; -- 2.39.5