summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2020-03-01 15:08:16 +0000
committerkamil <kamil@NetBSD.org>2020-03-01 15:08:16 +0000
commitbacd14de785075a92ce6b7080a2bbe642f75d91e (patch)
treec23fbc082b48fb9f7dd82e2741094d31cc2a9456 /sys/dev
parenta1a677db9e3d6d970d6a55ba306ad2c96f487e89 (diff)
Expose max_align_t to C99/C++
max_align_t does not depend on any pre-C99 or !C++ language feature. This structure is in use in 3rd party essential C++ code as an extension for older language revisions and in gnu99 code in the NetBSD distribution (RTLD's build rules define -std=gnu11 just for exposing this struct). Exposing max_align_t from the central NetBSD header avoid duplicate definition in 3rd party code that could differ and produce ABI mismatched binaries between -std= revisions. This problem does not exist on OSs like Linux as they get this namespace visibility defined inside LLVM or GNU toolchain headers. NetBSD ships with its own stddef.h, rather than relying on a toolchain and its internal extensions.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions