From b4d47ca02c2dced2312c6adfb99fab98972f3b21 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Jun 2009 23:20:12 +0000 Subject: [PATCH] use _isatty/_fdopen/_fileno() instead of isatty/fdopen/fileno() with VC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/filekind/filekind.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/filekind/filekind.cpp b/tests/filekind/filekind.cpp index d55c02e9de..9cb2abee33 100644 --- a/tests/filekind/filekind.cpp +++ b/tests/filekind/filekind.cpp @@ -18,6 +18,8 @@ #include "wx/wx.h" #endif +#if wxUSE_STREAMS + #ifdef __UNIX__ #include #endif @@ -30,7 +32,11 @@ #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