]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/filefn.h
Check for and allow zero length files
[wxWidgets.git] / include / wx / filefn.h
index 42bc28cd000e7d608c24ff133d078322622180d5..9fb223cde23f186ef2843218402a5be0e9850b17 100644 (file)
@@ -41,7 +41,7 @@
     typedef _off_t off_t;
 #elif defined(__BORLANDC__) && defined(__WIN16__)
     typedef long off_t;
-#elif defined(__SC__)
+#elif defined(__SYMANTEC__)
     typedef long off_t;
 #elif defined(__MWERKS__) && !defined(__INTEL__) && !defined(__MACH__)
     typedef long off_t;
@@ -92,11 +92,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
 
     #if wxUSE_UNICODE
         #if wxUSE_UNICODE_MSLU
-#ifdef __BORLANDC__
-            #define   wxOpen       open
-#else
-            #define   wxOpen       _open
-#endif 
+            #define   wxOpen       wxMSLU__wopen
             #define   wxAccess     wxMSLU__waccess
             #define   wxMkDir      wxMSLU__wmkdir
             #define   wxRmDir      wxMSLU__wrmdir
@@ -109,7 +106,11 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
             #define   wxStat       _wstat
         #endif
     #else // !wxUSE_UNICODE
+#ifdef __BORLANDC__
+        #define   wxOpen       open
+#else
         #define   wxOpen       _open
+#endif
         #define   wxAccess     _access
         #define   wxMkDir      _mkdir
         #define   wxRmDir      _rmdir