comparison test/testatomic.c @ 5006:8e8876e4aec6

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
author Sam Lantinga <slouken@libsdl.org>
date Sun, 16 Jan 2011 17:45:42 -0800
parents 0c72ae7b7cb2
children 9d6b527e0912
comparison
equal deleted inserted replaced
5005:7f0265279b68 5006:8e8876e4aec6
1 #include <stdio.h> 1 #include <stdio.h>
2
2 #include "SDL.h" 3 #include "SDL.h"
4 #include "SDL_atomic.h"
3 #include "SDL_assert.h" 5 #include "SDL_assert.h"
4 6
5 /* 7 /*
6 Absolutely basic tests just to see if we get the expected value 8 Absolutely basic tests just to see if we get the expected value
7 after calling each function. 9 after calling each function.