From: sf17k Date: Sat, 12 May 2012 05:38:33 +0000 (-0400) Subject: get it to compile on my mingw setup X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=55148f29742cb999593129d751df08b275ba0198;p=lugaru.git 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. --- 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;