Changeset View
Changeset View
Standalone View
Standalone View
include/stddef.h
Show All 12 Lines | |||||
typedef __max_align_t max_align_t; | typedef __max_align_t max_align_t; | ||||
#define __CLANG_MAX_ALIGN_T_DEFINED | #define __CLANG_MAX_ALIGN_T_DEFINED | ||||
#define _GCC_MAX_ALIGN_T | #define _GCC_MAX_ALIGN_T | ||||
#endif | #endif | ||||
#endif | #endif | ||||
#define offsetof(type, member) __offsetof(type, member) | #define offsetof(type, member) __offsetof(type, member) | ||||
#if __EXT1_VISIBLE | |||||
kib: How this include brace is useful without additional machinery ? The STD C specifies that users… | |||||
Not Done Inline ActionsThis is not how the namespace handled on FreeBSD. By default, which is indicated by the __BSD_VISIBLE being defined as non-zero, we spam all existing features into the visible namespace. If the feature has a specific standard-mandated knob to enable, or if it should be disabled if a restrictive subset of features is requested (like _ANSI_SOURCE), we also provide additional feature-test symbol for the libc use. Please look at the __XXX_VISIBLE symbols in sys/cdefs.h. I think that the feature requires some similar symbol, e.g. __STDC_LIB_EXT1_VISIBLE to trigger the visibility, and cdefs.h should translate user-supplied WANT into it. kib: This is not how the namespace handled on FreeBSD. By default, which is indicated by the… | |||||
/* ISO/IEC 9899:2011 K.3.3.2 */ | |||||
#ifndef _RSIZE_T_DECLARED | |||||
typedef size_t rsize_t; | |||||
#define _RSIZE_T_DECLARED | |||||
#endif | |||||
#endif /* __EXT1_VISIBLE */ | |||||
#endif /* _STDDEF_H_ */ | #endif /* _STDDEF_H_ */ | ||||
Context not available. |
How this include brace is useful without additional machinery ? The STD C specifies that users should define _ _STDC_WANT_LIB_EXT1_ _ before including corresponding headers, to get _s symbols. Also, the standard requires that the symbol STDC_LIB_EXT1 was only defined by the _implementation_, and only in case of complete conformance.