1 /*===---- __stddef_null.h - Definition of NULL -----------------------------===
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 *===-----------------------------------------------------------------------===
10 #if !defined(NULL) || !__building_module(_Builtin_stddef)
12 /* linux/stddef.h will define NULL to 0. glibc (and other) headers then define
13 * __need_NULL and rely on stddef.h to redefine NULL to the correct value again.
14 * Modules don't support redefining macros like that, but support that pattern
15 * in the non-modules case.
20 #if !defined(__MINGW32__) && !defined(_MSC_VER)
26 #define NULL ((void*)0)