X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/981cc5bbe9ab59b35bfb5a498374605062335e63..b2b98dfd4bdc302ee2e3f6a2112fb103d1655174:/tests/longlong/longlongtest.cpp diff --git a/tests/longlong/longlongtest.cpp b/tests/longlong/longlongtest.cpp index 3d4815db09..e09edae668 100644 --- a/tests/longlong/longlongtest.cpp +++ b/tests/longlong/longlongtest.cpp @@ -24,6 +24,8 @@ #include "wx/longlong.h" #include "wx/timer.h" +#if wxUSE_LONGLONG + // ---------------------------------------------------------------------------- // helpers for testing // ---------------------------------------------------------------------------- @@ -303,7 +305,7 @@ void LongLongTestCase::ToString() a.Negate(); CPPUNIT_ASSERT( a.ToString() == _T("-1311768467139281697") ); - wxLongLong llMin(LONG_MIN, 0); + wxLongLong llMin(-2147483647L - 1L, 0); CPPUNIT_ASSERT( llMin.ToString() == _T("-9223372036854775808") ); #if wxUSE_LONGLONG_WX @@ -322,3 +324,4 @@ void LongLongTestCase::ToString() } +#endif // wxUSE_LONGLONG