include/SDL_config_macosx.h
branchSDL-1.3
changeset 1657 5b0805ceb50f
parent 1638 ebd1aedb1292
child 1658 e49147870aac
child 1749 18e44c267283
--- a/include/SDL_config_macosx.h	Thu Apr 27 09:09:48 2006 +0000
+++ b/include/SDL_config_macosx.h	Fri Apr 28 16:55:41 2006 +0000
@@ -46,7 +46,12 @@
 #define HAVE_CALLOC	1
 #define HAVE_REALLOC	1
 #define HAVE_FREE	1
+
+/* If we specified an SDK or have a post-PowerPC chip, then alloca.h exists. */
+#if ( (MAC_OS_X_VERSION_MIN_REQUIRED >= 1030) || (!defined(__POWERPC__)) )
 #define HAVE_ALLOCA	1
+#endif
+
 #define HAVE_GETENV	1
 #define HAVE_PUTENV	1
 #define HAVE_UNSETENV	1