]> git.saurik.com Git - wxWidgets.git/commitdiff
Metrowerks fixes after huge file patch (patch 1037951)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Oct 2004 13:36:46 +0000 (13:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Oct 2004 13:36:46 +0000 (13:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filefn.h

index 69e95031d429652dc029440dc0786b0b2f6173cf..24c64f8f790285756a3a2b2e8ac95979fe82325a 100644 (file)
@@ -178,6 +178,8 @@ enum wxSeekMode
     #undef __HUGEFILES_SUPPORTED
     #if defined(__MINGW32__)
         #define __HUGEFILES_SUPPORTED 1
+    #elif defined(__MWERKS__)
+        #define __HUGEFILES_SUPPORTED 0
     #elif defined(__DMC__)
         #define __HUGEFILES_SUPPORTED 0
     #elif ((_INTEGRAL_MAX_BITS >= 64) || defined(_LARGE_FILES))
@@ -203,11 +205,13 @@ enum wxSeekMode
 
     #if defined(__MWERKS__)
         #if __MSL__ >= 0x6000
-            #define wxRead        _read(fd, (void *)buf, nCount)
-            #define wxWrite        _write(fd, (void *)buf, nCount)
+            #define wxRead(fd, buf, nCount)  _read(fd, (void *)buf, nCount)
+            #define wxWrite(fd, buf, nCount) _write(fd, (void *)buf, nCount)
         #else
-            #define wxRead        _read(fd, (const char *)buf, nCount)
-            #define wxWrite        _write(fd, (const char *)buf, nCount)
+            #define wxRead(fd, buf, nCount)\
+                  _read(fd, (const char *)buf, nCount)
+            #define wxWrite(fd, buf, nCount)\
+                  _write(fd, (const char *)buf, nCount)
         #endif
     #else
         #if defined(__DMC__) || defined(__WATCOMC__)