Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/cdefs.h
Show First 20 Lines • Show All 798 Lines • ▼ Show 20 Lines | |||||
* Old versions of GCC use non-standard ARM arch symbols; acle-compat.h | * Old versions of GCC use non-standard ARM arch symbols; acle-compat.h | ||||
* translates them to __ARM_ARCH and the modern feature symbols defined by ARM. | * translates them to __ARM_ARCH and the modern feature symbols defined by ARM. | ||||
*/ | */ | ||||
#if defined(__arm__) && !defined(__ARM_ARCH) | #if defined(__arm__) && !defined(__ARM_ARCH) | ||||
#include <machine/acle-compat.h> | #include <machine/acle-compat.h> | ||||
#endif | #endif | ||||
/* | /* | ||||
* Nullability qualifiers: currently only supported by Clang. | |||||
*/ | |||||
#if !__has_attribute(_Nonnull) | |||||
#define _Nonnull | |||||
#endif | |||||
#if !__has_attribute(_Nullable) | |||||
#define _Nullable | |||||
#endif | |||||
/* | |||||
* Type Safety Checking | * Type Safety Checking | ||||
* | * | ||||
* Clang provides additional attributes to enable checking type safety | * Clang provides additional attributes to enable checking type safety | ||||
* properties that cannot be enforced by the C type system. | * properties that cannot be enforced by the C type system. | ||||
*/ | */ | ||||
#if __has_attribute(__argument_with_type_tag__) && \ | #if __has_attribute(__argument_with_type_tag__) && \ | ||||
__has_attribute(__type_tag_for_datatype__) && !defined(lint) | __has_attribute(__type_tag_for_datatype__) && !defined(lint) | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |