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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401406
This commit is contained in:
parent
14ec0fcc7b
commit
c36118165e
502 changed files with 974 additions and 219 deletions
|
@ -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_haveSSE2()
|
|||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue