[compiler-rt] r196506 - PR16532: work around old GCC bug in interception_type_test.cc

Alexey Samsonov samsonov at google.com
Thu Dec 5 05:29:46 PST 2013


Author: samsonov
Date: Thu Dec  5 07:29:46 2013
New Revision: 196506

URL: http://llvm.org/viewvc/llvm-project?rev=196506&view=rev
Log:
PR16532: work around old GCC bug in interception_type_test.cc

Modified:
    compiler-rt/trunk/lib/interception/interception_type_test.cc

Modified: compiler-rt/trunk/lib/interception/interception_type_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception_type_test.cc?rev=196506&r1=196505&r2=196506&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception_type_test.cc (original)
+++ compiler-rt/trunk/lib/interception/interception_type_test.cc Thu Dec  5 07:29:46 2013
@@ -19,13 +19,13 @@
 #include <stddef.h>
 #include <stdint.h>
 
-COMPILER_CHECK(sizeof(SIZE_T) == sizeof(size_t));
-COMPILER_CHECK(sizeof(SSIZE_T) == sizeof(ssize_t));
-COMPILER_CHECK(sizeof(PTRDIFF_T) == sizeof(ptrdiff_t));
-COMPILER_CHECK(sizeof(INTMAX_T) == sizeof(intmax_t));
+COMPILER_CHECK(sizeof(::SIZE_T) == sizeof(size_t));
+COMPILER_CHECK(sizeof(::SSIZE_T) == sizeof(ssize_t));
+COMPILER_CHECK(sizeof(::PTRDIFF_T) == sizeof(ptrdiff_t));
+COMPILER_CHECK(sizeof(::INTMAX_T) == sizeof(intmax_t));
 
 #ifndef __APPLE__
-COMPILER_CHECK(sizeof(OFF64_T) == sizeof(off64_t));
+COMPILER_CHECK(sizeof(::OFF64_T) == sizeof(off64_t));
 #endif
 
 // The following are the cases when pread (and friends) is used instead of
@@ -33,7 +33,7 @@ COMPILER_CHECK(sizeof(OFF64_T) == sizeof
 // rest (they depend on _FILE_OFFSET_BITS setting when building an application).
 # if defined(__ANDROID__) || !defined _FILE_OFFSET_BITS || \
   _FILE_OFFSET_BITS != 64
-COMPILER_CHECK(sizeof(OFF_T) == sizeof(off_t));
+COMPILER_CHECK(sizeof(::OFF_T) == sizeof(off_t));
 # endif
 
 #endif





More information about the llvm-commits mailing list