src/file/SDL_rwops.c
branchgsoc2008_nds
changeset 2676 082cc3ffd7d8
parent 2674 f1d07ba2e275
child 2698 e1da92da346c
equal deleted inserted replaced
2675:5e4274591163 2676:082cc3ffd7d8
   464 #ifdef HAVE_STDIO_H
   464 #ifdef HAVE_STDIO_H
   465 SDL_RWops *
   465 SDL_RWops *
   466 SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
   466 SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
   467 {
   467 {
   468     SDL_RWops *rwops = NULL;
   468     SDL_RWops *rwops = NULL;
   469 #ifdef __NDS__
   469 #if 0
       
   470 ifdef __NDS__
   470     /* set it up so we can use stdio file function */
   471     /* set it up so we can use stdio file function */
   471     fatInitDefault();
   472     fatInitDefault();
       
   473     printf("called fatInitDefault()");
   472 #endif /* __NDS__ */
   474 #endif /* __NDS__ */
   473     rwops = SDL_AllocRW();
   475     rwops = SDL_AllocRW();
   474     if (rwops != NULL) {
   476     if (rwops != NULL) {
   475         rwops->seek = stdio_seek;
   477         rwops->seek = stdio_seek;
   476         rwops->read = stdio_read;
   478         rwops->read = stdio_read;