]> git.saurik.com Git - wxWidgets.git/commitdiff
DJGPP compilation
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Dec 2001 23:17:04 +0000 (23:17 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Dec 2001 23:17:04 +0000 (23:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index e1222863f6986c37c9226486e70f1657bc38ef66..bdf1592962d3a2115f1a80c0d8dff37fba02afaf 100644 (file)
 #endif // __WINDOWS__
 #endif // native Win compiler
 
-#if defined(__DOS__) && defined(__WATCOMC__)
-    #include <direct.h>
-    #include <dos.h>
-    #include <io.h>
+#if defined(__DOS__)
+    #ifdef __WATCOMC__
+        #include <direct.h>
+        #include <dos.h>
+        #include <io.h>
+    #endif
+    #ifdef __DJGPP__
+        #include <unistd.h>
+    #endif
 #endif
 
 #ifdef __GNUWIN32__
@@ -1197,7 +1202,16 @@ bool wxMkdir(const wxString& dir, int perm)
     if ( mkdir(wxFNCONV(dirname), perm) != 0 )
 #elif defined(__WXPM__)
     if (::DosCreateDir((PSZ)dirname, NULL) != 0) // enhance for EAB's??
-#else  // !MSW and !OS/2 VAC++
+#elif defined(__DOS__)
+  #if defined(__WATCOMC__)
+    (void)perm;
+    if ( wxMkDir(wxFNSTRINGCAST wxFNCONV(dirname)) != 0 )
+  #elif defined(__DJGPP__)
+    if ( mkdir(wxFNCONV(dirname), perm) != 0 )
+  #else
+    #error "Unsupported DOS compiler!"
+  #endif
+#else  // !MSW, !DOS and !OS/2 VAC++
     (void)perm;
     if ( wxMkDir(wxFNSTRINGCAST wxFNCONV(dirname)) != 0 )
 #endif // !MSW/MSW