X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWinDefs.h;h=e7d05708aa59c0f80c982b04dcee9581b77ae7cd;hb=3d9b1d366f1b3607c40eb5bcbbe631794ed899de;hp=e598863b4151e066ab4b8fd9753b339e27fd05e4;hpb=704dd48213a37c6ca9b517eb0f3442e04ee529fa;p=lugaru.git diff --git a/Source/WinDefs.h b/Source/WinDefs.h index e598863..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 @@ -42,7 +42,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. typedef bool Boolean; - struct Point { short v; @@ -85,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; @@ -99,16 +100,16 @@ char* ConvertFileName( const char* orgfilename); char* ConvertFileName( const char* orgfilename, const char* junk); -#define fopen( a, b) fopen( ConvertFileName( a), b); +#define fopen(a, b) fopen(ConvertFileName(a), b); -inline float abs( float f) +inline float abs(float f) { if (f < 0) return -f; return f; } -inline double abs( double f) +inline double abs(double f) { if (f < 0) return -f;