Browse Source

*** empty log message ***

Mike Goslin 25 years ago
parent
commit
014c21630f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/dtoolutil/filename.cxx

+ 6 - 0
dtool/src/dtoolutil/filename.cxx

@@ -22,6 +22,8 @@
 #if defined(WIN32)
 /* begin Win32-specific code */
 
+#include <direct.h>
+
 static string
 front_to_back_slash(const string &str) {
   string result = str;
@@ -825,7 +827,11 @@ make_dir() const {
       string component = _filename.substr(0, slash);
       if (!(component == ".") || 
           !(component == "..")) {
+#ifndef WIN32_VC
         mkdir(component.c_str(), 0xffff);
+#else
+	mkdir(component.c_str());
+#endif
       }
     }
     p = slash;