X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMacCompatibility.h;h=e9b2905f714219e2b6d98ac65311450913a442a6;hb=85f9eeb8f438d6d542c0c7b7446b31585cc9c23d;hp=8c179dbce3558365319c650e9d6b2fb645ff857d;hpb=44146d06c780d3aaa283672fedb08b8870ebe1b9;p=lugaru.git diff --git a/Source/MacCompatibility.h b/Source/MacCompatibility.h index 8c179db..e9b2905 100644 --- a/Source/MacCompatibility.h +++ b/Source/MacCompatibility.h @@ -30,6 +30,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // stuff to make Mac code compatable with Windows/Linux/etc +#if defined(WIN32) && !defined(strcasecmp) +#define strcasecmp(a,b) stricmp(a,b) +#endif + #ifdef _MSC_VER // disable warnings about double to float conversions #pragma warning(disable:4305) @@ -107,27 +111,7 @@ inline bool isnormal( double x) char* ConvertFileName( const char* orgfilename, const char *mode = "rb" ); #define fopen( a, b) fopen(ConvertFileName(a, b), b) -/* -inline float abs( float f) -{ -if (f < 0) -return -f; -return f; -} -inline double abs( double f) -{ -if (f < 0) -return -f; -return f; -} -*/ -__forceinline long long longlongabs( long long f) -{ - if (f < 0) - return -f; - return f; -} #endif #endif