]> git.saurik.com Git - wxWidgets.git/commitdiff
allow comparison of int with 64 bit integer type (see #10637)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 May 2009 09:59:31 +0000 (09:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 May 2009 09:59:31 +0000 (09:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cppunit.h
tests/streams/stdstream.cpp

index 2cdadbbd776d5a15ad041364c87cbc251013a697..bd131dd57af4e7afe52bcd709060a4a4d1d23bf7 100644 (file)
@@ -184,6 +184,11 @@ WX_CPPUNIT_ALLOW_EQUALS_TO_INT(short)
 WX_CPPUNIT_ALLOW_EQUALS_TO_INT(unsigned)
 WX_CPPUNIT_ALLOW_EQUALS_TO_INT(unsigned long)
 
+#if defined(wxLongLong_t) && !defined(wxLongLongIsLong)
+WX_CPPUNIT_ALLOW_EQUALS_TO_INT(wxLongLong_t)
+WX_CPPUNIT_ALLOW_EQUALS_TO_INT(unsigned wxLongLong_t)
+#endif
+
 // Use this macro to compare a wxArrayString with the pipe-separated elements
 // of the given string
 //
index 2033e10c0acfe0fbc8f8d40faf961999ce3ede84..3fc90d6235ae91c6fe6b972a65fc7404bc54cae9 100644 (file)
 #include <string.h>
 #include "wx/mstream.h"
 
-// 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 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
-
 // ==========================================================================
 // Definitions
 // ==========================================================================