diff options
author | Sam Lantinga <slouken@libsdl.org> | 2008-10-04 06:46:59 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2008-10-04 06:46:59 +0000 |
commit | 3020a8845174652f79b0013222d708e1f3892f17 (patch) | |
tree | d9d2f801f40ef2a25003094e5a53f13b0c0316b3 /test/testfile.c | |
parent | 5b8ca85bdaa065d7a67c1822b73b16f3facb2cd0 (diff) | |
download | sdl-3020a8845174652f79b0013222d708e1f3892f17.tar.gz |
Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga
Diffstat (limited to 'test/testfile.c')
-rw-r--r-- | test/testfile.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/testfile.c b/test/testfile.c index 1892aee3f..424429353 100644 --- a/test/testfile.c +++ b/test/testfile.c @@ -14,9 +14,14 @@ #include <stdio.h> /* WARNING ! those 2 files will be destroyed by this test program */ -#define FBASENAME1 "sdldata1" /* this file will be created during tests */ -#define FBASENAME2 "sdldata2" /* this file should not exists before starting test */ +#ifdef __IPHONEOS__ +#define FBASENAME1 "../Documents/sdldata1" /* this file will be created during tests */ +#define FBASENAME2 "../Documents/sdldata2" /* this file should not exist before starting test */ +#else +#define FBASENAME1 "sdldata1" /* this file will be created during tests */ +#define FBASENAME2 "sdldata2" /* this file should not exist before starting test */ +#endif #ifndef NULL #define NULL ((void *)0) |