]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/filekind/filekind.cpp
Setting eol-style property to CRLF for some project files.
[wxWidgets.git] / tests / filekind / filekind.cpp
index d55c02e9deeda59779d41afe333d9b86b79a64b5..fd4c9af41871c284e22ae6944353a9598058be26 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
@@ -107,7 +113,7 @@ void FileKindTestCase::File()
 {
     TempFile tmp; // put first
     wxFile file;
-    tmp.m_name = wxFileName::CreateTempFileName(_T("wxft"), &file);
+    tmp.m_name = wxFileName::CreateTempFileName(wxT("wxft"), &file);
     TestFd(file, true);
     file.Close();