]> git.jsancho.org Git - lugaru.git/blobdiff - Source/MacCompatibility.h
Sorted all source files in folders
[lugaru.git] / Source / MacCompatibility.h
index 1ce59d4858fa7c68d13b0dae9d08609dbee6dc7b..26b0b60827453f30c2711c2f73a3b9830c9a8cee 100644 (file)
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -20,8 +21,6 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef _MACCOMPATIBLITY_H_
 #define _MACCOMPATIBLITY_H_
 
-#if !PLATFORM_MACOSX
-
 #include <stdio.h>
 #include <float.h>
 #include <math.h>
@@ -50,9 +49,6 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #  endif
 #endif
 
-typedef bool Boolean;
-
-
 struct Point {
     short v;
     short h;
@@ -62,12 +58,7 @@ typedef signed char SInt8;
 typedef unsigned int UInt32;
 
 
-#include "Random.h"
-
-
-void CopyCStringToPascal( const char* src, unsigned char dst[256]);
-void CopyPascalStringToC( const unsigned char* src, char* dst);
-
+#include "Math/Random.h"
 
 typedef struct AbsoluteTime {
     unsigned long   hi;
@@ -101,13 +92,6 @@ inline bool isnormal( double x)
 #include <stdint.h>
 #endif
 
-
-// fix file names to use '/' instead of ':'
-char* ConvertFileName( const char* orgfilename, const char *mode = "rb" );
-
-#define fopen( a, b) fopen(ConvertFileName(a, b), b)
-
-#endif
 #endif