[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I've applied the attached patch to 4.2 (I'll do the same for 4.3 after
typing this) to properly detect endianesse on new Macs.
It also defines ALLEGRO_I386 on Intel-based Macs.
Not sure if this is sufficient to get Allegro to work on them, but it's at
least required.
Evert
Index: include/allegro/platform/alosxcfg.h
===================================================================
--- include/allegro/platform/alosxcfg.h (revision 5662)
+++ include/allegro/platform/alosxcfg.h (working copy)
@@ -41,11 +41,22 @@
/* Describe this platform */
#define ALLEGRO_PLATFORM_STR "MacOS X"
-#define ALLEGRO_BIG_ENDIAN
#define ALLEGRO_CONSOLE_OK
#define ALLEGRO_USE_CONSTRUCTOR
#define ALLEGRO_MULTITHREADED
+/* Endianesse - different between Intel and PPC based Mac's */
+#ifdef __LITTLE_ENDIAN__
+ #define ALLEGRO_LITTLE_ENDIAN
+#endif
+#ifdef __BIG_ENDIAN__
+ #define ALLEGRO_BIG_ENDIAN
+#endif
+
+#ifdef __i386__
+ #define ALLEGRO_I386
+#endif
+
/* Arrange for other headers to be included later on */
#define ALLEGRO_EXTRA_HEADER "allegro/platform/alosx.h"