comparison test/testfile.c @ 2432:daf3baf72a45 gsoc2008_iphone

Added lines to change path when run on iPhone. Reason: iPhone operates in sandbox and so cannot write files just anywhere ... I use the documents folder in this test.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Fri, 15 Aug 2008 00:57:58 +0000
parents 891ed60fcaa9
children
comparison
equal deleted inserted replaced
2431:7e449145b6ca 2432:daf3baf72a45
12 12
13 13
14 #include <stdio.h> 14 #include <stdio.h>
15 15
16 /* WARNING ! those 2 files will be destroyed by this test program */ 16 /* WARNING ! those 2 files will be destroyed by this test program */
17 #define FBASENAME1 "sdldata1" /* this file will be created during tests */ 17
18 #define FBASENAME2 "sdldata2" /* this file should not exists before starting test */ 18 #ifdef __IPHONEOS__
19 19 #define FBASENAME1 "../Documents/sdldata1" /* this file will be created during tests */
20 #define FBASENAME2 "../Documents/sdldata2" /* this file should not exist before starting test */
21 #else
22 #define FBASENAME1 "sdldata1" /* this file will be created during tests */
23 #define FBASENAME2 "sdldata2" /* this file should not exist before starting test */
24 #endif
20 25
21 #ifndef NULL 26 #ifndef NULL
22 #define NULL ((void *)0) 27 #define NULL ((void *)0)
23 #endif 28 #endif
24 29