diff test/testfile.c @ 2765:f55c87ae336b

Final merge of Google Summer of Code 2008 work... Bring SDL to iPhone and iPod Touch by Holmes Futrell, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Sat, 04 Oct 2008 06:46:59 +0000
parents 891ed60fcaa9
children 27ab20a36eba
line wrap: on
line diff
--- a/test/testfile.c	Wed Sep 17 08:24:51 2008 +0000
+++ b/test/testfile.c	Sat Oct 04 06:46:59 2008 +0000
@@ -14,9 +14,14 @@
 #include <stdio.h>
 
 /* WARNING ! those 2 files will be destroyed by this test program */
+
+#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 exists before starting test */
-
+#define FBASENAME2	"sdldata2"      /* this file should not exist before starting test */
+#endif
 
 #ifndef NULL
 #define NULL ((void *)0)