Changes in abi/include/_bits/NULL.h [0aa5c8a:7c3fb9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/_bits/NULL.h
r0aa5c8a r7c3fb9b 37 37 /** @file 38 38 * Definition of constant NULL. 39 * 40 * This definition is designed to work in both C and C++, and use 41 * the special constant `nullptr` in C++11 and above. 42 * Including this file is preferrable to defining the constant separately. 39 43 */ 40 44 … … 42 46 #define _BITS_NULL_H_ 43 47 44 #define __need_NULL 45 #include <stddef.h> 48 #ifndef NULL 49 50 #if __cplusplus >= 201103L 51 #define NULL nullptr 52 #elif defined(__cplusplus) 53 #define NULL 0L 54 #else 55 #define NULL ((void *) 0) 56 #endif 57 58 #endif 46 59 47 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.