]> git.saurik.com Git - wxWidgets.git/commitdiff
std::streamoff is just a (32 bit) long under Win32 with MSVC so extra WX_CPPUNIT_ALLO...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 May 2009 07:52:49 +0000 (07:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 May 2009 07:52:49 +0000 (07:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/streams/stdstream.cpp

index a5212e5e1fb468ff1a6b2f9a28c7f0b0f14abdec..2033e10c0acfe0fbc8f8d40faf961999ce3ede84 100644 (file)
 
 // when std::streamoff is simply long we don't need this as we already allow
 // comparisons between int and long but we do need it otherwise -- and we don't
-// have any way to detect it so for now just assume that all 64 bit builds use
-// long as streamoff and if this is wrong we'll add a check to configure later
-#if SIZEOF_SIZE_T != 8
-    WX_CPPUNIT_ALLOW_EQUALS_TO_INT(std::streamoff)
+// have any way to detect it so for now just assume that all 64 bit Unix builds
+// use long as streamoff and if this is wrong we'll add a check to configure
+// later
+#ifndef __WXMSW__
+    #if SIZEOF_SIZE_T != 8
+        WX_CPPUNIT_ALLOW_EQUALS_TO_INT(std::streamoff)
+    #endif
 #endif
 
 // ==========================================================================