Added Metrowerks SIOUX setup code.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Apr 2002 07:40:27 +0000
changeset 164 a93a65be81fb
parent 163 fc2b8ee5b420
child 165 cbb1b0dcf6da
Added Metrowerks SIOUX setup code.
test/test_physfs.c
--- a/test/test_physfs.c	Wed Apr 03 07:40:27 2002 +0000
+++ b/test/test_physfs.c	Wed Apr 03 07:40:27 2002 +0000
@@ -11,6 +11,10 @@
 #include <errno.h>
 #include <string.h>
 
+#if (defined __MWERKS__)
+#include <SIOUX.h>
+#endif
+
 #if ((!defined WIN32) && (!defined __MACOS__))
 #define HAVE_READLINE
 #endif
@@ -587,6 +591,14 @@
     char *buf = NULL;
     int rc = 0;
 
+#if (defined __MWERKS__)
+    extern tSIOUXSettings SIOUXSettings;
+    SIOUXSettings.asktosaveonclose = 0;
+    SIOUXSettings.autocloseonquit = 1;
+    SIOUXSettings.rows = 40;
+    SIOUXSettings.columns = 120;
+#endif
+
     printf("\n");
 
     if (!PHYSFS_init(argv[0]))