X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWinDefs.h;h=47fb4d3d47b273c15201a45875f8f0d8b62686bf;hb=5931bd1edf827e8645f89b5a4a16585cb25bc6e1;hp=31dd352d12598aa1fc7239c0668fb692001ec6bb;hpb=25e3d5e35a7fd7efdffc420efe3c41a91cefe43f;p=lugaru.git diff --git a/Source/WinDefs.h b/Source/WinDefs.h index 31dd352..47fb4d3 100644 --- a/Source/WinDefs.h +++ b/Source/WinDefs.h @@ -89,8 +89,6 @@ inline bool isnormal( double x) } */ -typedef unsigned int uintptr_t; - // fix file names to use '/' instead of ':' char* ConvertFileName( const char* orgfilename); @@ -99,6 +97,7 @@ char* ConvertFileName( const char* orgfilename, const char* junk); #define fopen(a, b) fopen(ConvertFileName(a), b); +#ifndef __MINGW32__ inline float abs(float f) { if (f < 0) @@ -112,6 +111,7 @@ inline double abs(double f) return -f; return f; } +#endif // __MINGW32__ #endif