From: Włodzimierz Skiba <abx@abx.art.pl>
Date: Tue, 19 Oct 2004 21:10:42 +0000 (+0000)
Subject: Warning fix to avoid typecasting with OW elsewhere.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ceb3b0d8e227fc165dc6d6e4f29b1c46f061eb6c?ds=inline

Warning fix to avoid typecasting with OW elsewhere.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/include/wx/filefn.h b/include/wx/filefn.h
index 298212e17d..b977aaf14a 100644
--- a/include/wx/filefn.h
+++ b/include/wx/filefn.h
@@ -218,7 +218,12 @@ enum wxSeekMode
                   _write(fd, (const char *)buf, nCount)
         #endif
     #else
-        #if defined(__DMC__) || defined(__WATCOMC__)
+        #if defined(__WATCOMC__)
+            inline wxFileSize_t wxRead( int handle, void *buffer, wxFileSize_t len )
+                                { return ::read( handle, buffer, (unsigned int)len ); }
+            inline wxFileSize_t wxWrite( int handle, const void *buffer, wxFileSize_t len )
+                                { return ::write( handle, buffer, (unsigned int)len ); }
+        #elif defined(__DMC__)
             #define wxRead        ::read
             #define wxWrite       ::write
         #else