Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Added lines to change path when run on iPhone. Reason: iPhone operate…
…s in sandbox and so cannot write files just anywhere ... I use the documents folder in this test.
  • Loading branch information
Holmes Futrell committed Aug 15, 2008
1 parent d304ee8 commit 14bc1593f887e4d883ea3e04e82e8f4687b455df
Showing with 7 additions and 2 deletions.
  1. +7 −2 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)

0 comments on commit 14bc159

Please sign in to comment.