]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/streams/largefile.cpp
remove unnecessary refCount=1 parameter from wxObjectRefData ctor
[wxWidgets.git] / tests / streams / largefile.cpp
index 1366ae6091bbbea9683ab4d36bf1184c9e374850..f61d2943d18513709e6054d31fdc542c042914cf 100644 (file)
 #include "wx/wfstream.h"
 
 #ifdef __WXMSW__
-#include "wx/msw/wrapwin.h"
-#include <winioctl.h>
+    #include "wx/msw/wrapwin.h"
+    #ifdef __VISUALC__
+        // 'nonstandard extension used : nameless struct/union' occurs inside
+        // winioctl.h
+        #pragma warning(disable:4201)
+    #endif
+    #include <winioctl.h>
+    #ifdef __VISUALC__
+        #pragma warning(default:4201)
+    #endif
+#endif
+
+#ifdef __VISUALC__
+    #define fileno _fileno
 #endif
 
 using std::auto_ptr;
@@ -337,7 +349,8 @@ void GetVolumeInfo(const wxString& path)
     }
 
     // NULL means the current volume
-    const wxChar *pVol = vol.empty() ? NULL : vol.c_str();
+    const wxChar *pVol = vol.empty() ? (const wxChar *)NULL
+                                     : vol.c_str();
 
     if (!::GetVolumeInformation(pVol, NULL, 0, NULL, NULL,
                                 &volumeFlags,