]> granicus.if.org Git - clang/commitdiff
[Headers] Use standard builtin defines instead of typeof trickery.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 6 Feb 2013 00:38:13 +0000 (00:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 6 Feb 2013 00:38:13 +0000 (00:38 +0000)
 - 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

index eb919b57bcb9e20d37f267d1240c720d6740c28e..ad5dc21fb0443cdd8630dde9495223770271fa05 100644 (file)
 
 #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