diff src/cpuinfo/SDL_cpuinfo.c @ 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 19418e4422cb
children ef9a9064bff2
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c	Tue Feb 21 08:34:45 2006 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Tue Feb 21 08:46:50 2006 +0000
@@ -19,6 +19,7 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+#include "SDL_config.h"
 
 /* CPU feature detection for SDL */
 
@@ -30,7 +31,7 @@
 #include <setjmp.h>
 #endif
 
-#if MACOSX
+#ifdef __MACOSX__
 #include <sys/sysctl.h> /* For AltiVec check */
 #endif
 
@@ -307,7 +308,7 @@
 static __inline__ int CPU_haveAltiVec()
 {
 	volatile int altivec = 0;
-#if MACOSX
+#ifdef __MACOSX__
 	int selectors[2] = { CTL_HW, HW_VECTORUNIT }; 
 	int hasVectorUnit = 0; 
 	size_t length = sizeof(hasVectorUnit);