Warning: This file is not a C or C++ file. It does not have highlighting.
1 | /*===---- __stddef_nullptr_t.h - Definition of nullptr_t -------------------=== |
---|---|
2 | * |
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 |
6 | * |
7 | *===-----------------------------------------------------------------------=== |
8 | */ |
9 | |
10 | #ifndef _NULLPTR_T |
11 | #define _NULLPTR_T |
12 | |
13 | #ifdef __cplusplus |
14 | #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) |
15 | namespace std { |
16 | typedef decltype(nullptr) nullptr_t; |
17 | } |
18 | using ::std::nullptr_t; |
19 | #endif |
20 | #elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L |
21 | typedef typeof(nullptr) nullptr_t; |
22 | #endif |
23 | |
24 | #endif |
25 |
Warning: This file is not a C or C++ file. It does not have highlighting.