|
@@ -36,14 +36,16 @@
|
|
|
#define DTOOL_PLATFORM "iphone"
|
|
#define DTOOL_PLATFORM "iphone"
|
|
|
#elif defined(__ppc__)
|
|
#elif defined(__ppc__)
|
|
|
#define DTOOL_PLATFORM "osx_ppc"
|
|
#define DTOOL_PLATFORM "osx_ppc"
|
|
|
-#else
|
|
|
|
|
|
|
+#elif defined(__i386__)
|
|
|
#define DTOOL_PLATFORM "osx_i386"
|
|
#define DTOOL_PLATFORM "osx_i386"
|
|
|
|
|
+#elif defined(__x86_64)
|
|
|
|
|
+#define DTOOL_PLATFORM "osx_amd64"
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#elif defined(__FreeBSD__)
|
|
#elif defined(__FreeBSD__)
|
|
|
#if defined(__x86_64)
|
|
#if defined(__x86_64)
|
|
|
#define DTOOL_PLATFORM "freebsd_amd64"
|
|
#define DTOOL_PLATFORM "freebsd_amd64"
|
|
|
-#else
|
|
|
|
|
|
|
+#elif defined(__i386__)
|
|
|
#define DTOOL_PLATFORM "freebsd_i386"
|
|
#define DTOOL_PLATFORM "freebsd_i386"
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
@@ -58,11 +60,13 @@
|
|
|
|
|
|
|
|
#elif defined(__ppc__)
|
|
#elif defined(__ppc__)
|
|
|
#define DTOOL_PLATFORM "linux_ppc"
|
|
#define DTOOL_PLATFORM "linux_ppc"
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
-#else
|
|
|
|
|
|
|
+#ifndef DTOOL_PLATFORM
|
|
|
#error "Can't determine platform; please define DTOOL_PLATFORM in Config.pp file."
|
|
#error "Can't determine platform; please define DTOOL_PLATFORM in Config.pp file."
|
|
|
-
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|