[clang] [clang][headers] Including stddef.h always redefines NULL (PR #99727)
Ian Anderson via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 11:26:25 PDT 2024
================
@@ -20,19 +20,18 @@
* modules.
*/
#if defined(__MVS__) && __has_include_next(<stdarg.h>)
-#include <__stdarg_header_macro.h>
#undef __need___va_list
#undef __need_va_list
#undef __need_va_arg
#undef __need___va_copy
#undef __need_va_copy
+#include <__stdarg_header_macro.h>
----------------
ian-twilightcoder wrote:
clang/test/Headers/stddefneeds.cpp already tests this, but let me add one in clang/test/Modules too
https://github.com/llvm/llvm-project/pull/99727
More information about the cfe-commits
mailing list