diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-02-06 00:38:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-02-06 00:38:13 +0000 |
commit | 1fc271c38aaa68dce73d6f1bee9f6fd3474e51f0 (patch) | |
tree | cb5a2d761919521459e6e2bb54ef15b107c74247 | |
parent | 30c07afc3241adf6199463dae134fc62daa2aeb3 (diff) |
[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
-rw-r--r-- | lib/Headers/stddef.h | 4 |
1 files 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 |