]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
font size fix for <PRE>
[wxWidgets.git] / src / common / file.cpp
index 89d17ff691b73ca7ba76ae720da8237a520f449c..4a407852701385f54b1d6e233632f72c9e5e4232 100644 (file)
     #define   R_OK        4
 #endif
 
-// there is no distinction between text and binary files under Unix
-#ifdef    __UNIX__
+// there is no distinction between text and binary files under Unix, so define
+// O_BINARY as 0 if the system headers don't do it already
+#if defined(__UNIX__) && !defined(O_BINARY)
     #define   O_BINARY    (0)
 #endif  //__UNIX__