test/test_physfs.c
changeset 164 a93a65be81fb
parent 153 36c89f1228a9
child 165 cbb1b0dcf6da
equal deleted inserted replaced
163:fc2b8ee5b420 164:a93a65be81fb
     8 
     8 
     9 #include <stdio.h>
     9 #include <stdio.h>
    10 #include <stdlib.h>
    10 #include <stdlib.h>
    11 #include <errno.h>
    11 #include <errno.h>
    12 #include <string.h>
    12 #include <string.h>
       
    13 
       
    14 #if (defined __MWERKS__)
       
    15 #include <SIOUX.h>
       
    16 #endif
    13 
    17 
    14 #if ((!defined WIN32) && (!defined __MACOS__))
    18 #if ((!defined WIN32) && (!defined __MACOS__))
    15 #define HAVE_READLINE
    19 #define HAVE_READLINE
    16 #endif
    20 #endif
    17 
    21 
   585 int main(int argc, char **argv)
   589 int main(int argc, char **argv)
   586 {
   590 {
   587     char *buf = NULL;
   591     char *buf = NULL;
   588     int rc = 0;
   592     int rc = 0;
   589 
   593 
       
   594 #if (defined __MWERKS__)
       
   595     extern tSIOUXSettings SIOUXSettings;
       
   596     SIOUXSettings.asktosaveonclose = 0;
       
   597     SIOUXSettings.autocloseonquit = 1;
       
   598     SIOUXSettings.rows = 40;
       
   599     SIOUXSettings.columns = 120;
       
   600 #endif
       
   601 
   590     printf("\n");
   602     printf("\n");
   591 
   603 
   592     if (!PHYSFS_init(argv[0]))
   604     if (!PHYSFS_init(argv[0]))
   593     {
   605     {
   594         printf("PHYSFS_init() failed!\n  reason: %s.\n", PHYSFS_getLastError());
   606         printf("PHYSFS_init() failed!\n  reason: %s.\n", PHYSFS_getLastError());