aboutsummaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/assert.h')
-rw-r--r--include/assert.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/assert.h b/include/assert.h
index c885a13..ccc8e33 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: assert.h,v 1.13 2011/06/26 21:11:41 espie Exp $ */
+/* $OpenBSD: assert.h,v 1.15 2020/09/06 12:57:25 millert Exp $ */
/* $NetBSD: assert.h,v 1.6 1994/10/26 00:55:44 cgd Exp $ */
/*-
@@ -61,6 +61,11 @@
#ifndef _ASSERT_H_
#define _ASSERT_H_
+
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112
+#define static_assert _Static_assert
+#endif
+
__BEGIN_DECLS
__dead void __assert(const char *, int, const char *);
__dead void __assert2(const char *, int, const char *, const char *);