From 2b306f08e1b0e49c7891871f4fb7e2b00184a04d Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 26 Mar 2002 01:17:49 +0000 Subject: [PATCH] ICU-1732 Use #ifdef U_INT64_T_UNAVAILABLE in case int64_t is unavailable. X-SVN-Rev: 8236 --- icu4c/source/test/intltest/strtest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icu4c/source/test/intltest/strtest.cpp b/icu4c/source/test/intltest/strtest.cpp index efc3fd3645..9cbb9e450b 100644 --- a/icu4c/source/test/intltest/strtest.cpp +++ b/icu4c/source/test/intltest/strtest.cpp @@ -36,12 +36,16 @@ void StringTest::TestSizeofWCharT(void) { } void StringTest::TestSizeofInt64(void) { +#ifdef U_INT64_T_UNAVAILABLE + errln("int64_t and uint64_t are undefined."); +#else if(8!=sizeof(int64_t)) { errln("TestSizeofInt64: 8!=sizeof(int64_t) - int64_t needs to be fixed in platform.h"); } if(8!=sizeof(uint64_t)) { errln("TestSizeofInt64: 8!=sizeof(uint64_t) - uint64_t needs to be fixed in platform.h"); } +#endif } void StringTest::TestCharsetFamily(void) {