This addresses potential issues with system headers reported in <rdar://problem/
7727159>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98006
91177308-0d34-0410-b5e6-
96231b3b80d8
#define __STDDEF_H
typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
+#ifndef _SIZE_T
+#define _SIZE_T
typedef __typeof__(sizeof(int)) size_t;
+#endif
#ifndef __cplusplus
+#ifndef _WCHAR_T
+#define _WCHAR_T
typedef __typeof__(*L"") wchar_t;
#endif
+#endif
+#undef NULL
#ifdef __cplusplus
#define NULL __null
#else