Path: blob/main/contrib/llvm-project/clang/lib/Headers/__stddef_null.h
35233 views
/*===---- __stddef_null.h - Definition of NULL -----------------------------===1*2* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3* See https://llvm.org/LICENSE.txt for license information.4* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5*6*===-----------------------------------------------------------------------===7*/89#if !defined(NULL) || !__building_module(_Builtin_stddef)1011/* linux/stddef.h will define NULL to 0. glibc (and other) headers then define12* __need_NULL and rely on stddef.h to redefine NULL to the correct value again.13* Modules don't support redefining macros like that, but support that pattern14* in the non-modules case.15*/16#undef NULL1718#ifdef __cplusplus19#if !defined(__MINGW32__) && !defined(_MSC_VER)20#define NULL __null21#else22#define NULL 023#endif24#else25#define NULL ((void*)0)26#endif2728#endif293031