Mercurial > sdl-ios-xcode
diff test/testatomic.c @ 3338:9de326b3099c
Fixed bug #817
Daniele Forghieri 2009-09-30 15:48:24 PDT
Some tests doesn't use the correct include statement (and there are some
missing declaration) and some test use C++ variable after statement, preventing
compile wicth Open Watcom
The patch attached fixes this
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Oct 2009 09:55:20 +0000 |
parents | 35387815b155 |
children | 3a95a2b93eb3 |
line wrap: on
line diff
--- a/test/testatomic.c Sun Oct 04 09:51:04 2009 +0000 +++ b/test/testatomic.c Sun Oct 04 09:55:20 2009 +0000 @@ -1,3 +1,4 @@ +#include <stdio.h> #include "SDL.h" /* Make sure we have good macros for printing 32 and 64 bit values */ @@ -17,7 +18,7 @@ after calling each function. */ -char * +char * tf(SDL_bool tf) { static char *t = "true"; @@ -30,7 +31,7 @@ return f; } - + int main(int argc, char *argv[]) {