diff options
author | Sam Lantinga <slouken@libsdl.org> | 2011-01-16 17:45:42 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2011-01-16 17:45:42 -0800 |
commit | b0e505b652f99bb49492d9fa03cd1b7ae5e77da3 (patch) | |
tree | e603e21ee54261e2664b1b834b3c5036715272c2 /test/testatomic.c | |
parent | 5fe91ad8eb895de587a5722c2538843d80311986 (diff) | |
download | sdl-b0e505b652f99bb49492d9fa03cd1b7ae5e77da3.tar.gz |
Include windows.h in SDL_atomic.h by default, but don't include the atomic API in SDL.h
This allows all SDL code to take advantage of the atomic intrinsics on Windows, but doesn't cause applications just including SDL.h to pull in windows.h
Diffstat (limited to 'test/testatomic.c')
-rw-r--r-- | test/testatomic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testatomic.c b/test/testatomic.c index bf845d129..afa20b402 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -1,5 +1,7 @@ #include <stdio.h> + #include "SDL.h" +#include "SDL_atomic.h" #include "SDL_assert.h" /* |