]> git.jsancho.org Git - lugaru.git/blobdiff - Source/MacCompatibility.h
Remove some extra declarations of "channels"
[lugaru.git] / Source / MacCompatibility.h
index 8c179dbce3558365319c650e9d6b2fb645ff857d..e9b2905f714219e2b6d98ac65311450913a442a6 100644 (file)
@@ -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