src/cpuinfo/SDL_cpuinfo.c
changeset 1402 d910939febfa
parent 1361 19418e4422cb
child 1426 ef9a9064bff2
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Tue Feb 21 08:34:45 2006 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Tue Feb 21 08:46:50 2006 +0000
     1.3 @@ -19,6 +19,7 @@
     1.4      Sam Lantinga
     1.5      slouken@libsdl.org
     1.6  */
     1.7 +#include "SDL_config.h"
     1.8  
     1.9  /* CPU feature detection for SDL */
    1.10  
    1.11 @@ -30,7 +31,7 @@
    1.12  #include <setjmp.h>
    1.13  #endif
    1.14  
    1.15 -#if MACOSX
    1.16 +#ifdef __MACOSX__
    1.17  #include <sys/sysctl.h> /* For AltiVec check */
    1.18  #endif
    1.19  
    1.20 @@ -307,7 +308,7 @@
    1.21  static __inline__ int CPU_haveAltiVec()
    1.22  {
    1.23  	volatile int altivec = 0;
    1.24 -#if MACOSX
    1.25 +#ifdef __MACOSX__
    1.26  	int selectors[2] = { CTL_HW, HW_VECTORUNIT }; 
    1.27  	int hasVectorUnit = 0; 
    1.28  	size_t length = sizeof(hasVectorUnit);