Browse Source

applied patch from Parise for MSVC6.0

Jon Parise 23 years ago
parent
commit
20afb11510
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/dtoolutil/filename.cxx

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

@@ -52,6 +52,12 @@
 #include <windows.h>
 #endif
 
+// The MSVC 6.0 Win32 SDK lacks the following definitions, so we define them
+// here for compatibility.
+#ifndef FILE_ATTRIBUTE_DEVICE
+#define FILE_ATTRIBUTE_DEVICE	0x00000040
+#endif
+
 // We might have been linked with the Cygwin dll.  This is ideal if it
 // is available, because it allows Panda to access all the Cygwin
 // mount definitions if they are in use.  If the Cygwin dll is not