]> git.saurik.com Git - wxWidgets.git/commitdiff
use _isatty/_fdopen/_fileno() instead of isatty/fdopen/fileno() with VC
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jun 2009 23:20:12 +0000 (23:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jun 2009 23:20:12 +0000 (23:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/filekind/filekind.cpp

index d55c02e9deeda59779d41afe333d9b86b79a64b5..9cb2abee33a0c58050c73200f6308529d0ed4da3 100644 (file)
@@ -18,6 +18,8 @@
     #include "wx/wx.h"
 #endif
 
+#if wxUSE_STREAMS
+
 #ifdef __UNIX__
     #include <sys/socket.h>
 #endif
 #include "wx/sckstrm.h"
 #include "wx/mstream.h"
 
-#if wxUSE_STREAMS
+#ifdef __VISUALC__
+    #define isatty _isatty
+    #define fdopen _fdopen
+    #define fileno _fileno
+#endif
 
 ///////////////////////////////////////////////////////////////////////////////
 // The test case