From 230cc79394d837debd90fa1ca7e2676edeb81c22 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 6 Feb 2013 00:38:13 +0000 Subject: [Headers] Use standard builtin defines instead of typeof trickery. - The trickery can confuse more basic source processors, in particular the Unix conformance tool that wants to scan headers. llvm-svn: 174475 --- clang/lib/Headers/stddef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Headers/stddef.h') diff --git a/clang/lib/Headers/stddef.h b/clang/lib/Headers/stddef.h index eb919b57bcb..ad5dc21fb04 100644 --- a/clang/lib/Headers/stddef.h +++ b/clang/lib/Headers/stddef.h @@ -28,11 +28,11 @@ #ifndef _PTRDIFF_T #define _PTRDIFF_T -typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t; +typedef __PTRDIFF_TYPE__ ptrdiff_t; #endif #ifndef _SIZE_T #define _SIZE_T -typedef __typeof__(sizeof(int)) size_t; +typedef __SIZE_TYPE__ size_t; #endif #ifndef __cplusplus #ifndef _WCHAR_T -- cgit v1.2.3