musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--include/assert.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h
index 1ee02a4a..e679adbf 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -8,7 +8,7 @@
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)))
#endif
-#ifndef __cplusplus
+#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
#define static_assert _Static_assert
#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 15:06:00 +0000

AltStyle によって変換されたページ (->オリジナル) /