From 1fc271c38aaa68dce73d6f1bee9f6fd3474e51f0 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 6 Feb 2013 00:38:13 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174475 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/stddef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Headers/stddef.h b/lib/Headers/stddef.h index eb919b57bc..ad5dc21fb0 100644 --- a/lib/Headers/stddef.h +++ b/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 -- 2.40.0