#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;
}
// 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,