diff include/SDL_stdinc.h @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 8570e1f4b1f1
children d2ee8da60262
line wrap: on
line diff
--- a/include/SDL_stdinc.h	Tue Feb 21 08:34:45 2006 +0000
+++ b/include/SDL_stdinc.h	Tue Feb 21 08:46:50 2006 +0000
@@ -159,12 +159,12 @@
 #if HAVE_ALLOCA && !defined(alloca)
 # if HAVE_ALLOCA_H
 #  include <alloca.h>
-# elif __GNUC__
+# elif defined(__GNUC__)
 #  define alloca __builtin_alloca
-# elif _MSC_VER
+# elif defined(_MSC_VER)
 #  include <malloc.h>
 #  define alloca _alloca
-# elif _AIX
+# elif defined(__AIX__)
   #pragma alloca
 # else
    char *alloca ();