Mercurial > sdl-ios-xcode
comparison src/cpuinfo/SDL_cpuinfo.c @ 5092:327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 24 Jan 2011 21:20:30 -0800 |
parents | c2539ff054c8 |
children | 427998ff3bcf |
comparison
equal
deleted
inserted
replaced
5091:79bd1e289005 | 5092:327f181542f1 |
---|---|
37 #elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP | 37 #elif SDL_ALTIVEC_BLITTERS && HAVE_SETJMP |
38 #include <signal.h> | 38 #include <signal.h> |
39 #include <setjmp.h> | 39 #include <setjmp.h> |
40 #endif | 40 #endif |
41 #ifdef __WIN32__ | 41 #ifdef __WIN32__ |
42 #define WIN32_LEAN_AND_MEAN | 42 #include "../core/windows/SDL_windows.h" |
43 #include <windows.h> | |
44 #endif | 43 #endif |
45 | 44 |
46 #define CPU_HAS_RDTSC 0x00000001 | 45 #define CPU_HAS_RDTSC 0x00000001 |
47 #define CPU_HAS_MMX 0x00000002 | 46 #define CPU_HAS_MMX 0x00000002 |
48 #define CPU_HAS_MMXEXT 0x00000004 | 47 #define CPU_HAS_MMXEXT 0x00000004 |