浏览代码

for Ubuntu

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@105338 91177308-0d34-0410-b5e6-96231b3b80d8
Howard Hinnant 15 年之前
父节点
当前提交
ed30e070ac
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      include/cstddef

+ 7 - 0
include/cstddef

@@ -34,6 +34,13 @@ Types:
 */
 
 #include <__config>
+
+#ifdef __GLIBC__
+#define __need_NULL
+#define __need_ptrdiff_t
+#define __need_size_t
+#endif
+
 #include <stddef.h>
 
 #pragma GCC system_header