projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add check for __Static_assert() and asserts on struct sizes
[tinc]
/
src
/
have.h
diff --git
a/src/have.h
b/src/have.h
index
36d17b6
..
2428151
100644
(file)
--- a/
src/have.h
+++ b/
src/have.h
@@
-45,6
+45,12
@@
#include <math.h>
#include <time.h>
+#ifdef HAVE_STATIC_ASSERT
+#define STATIC_ASSERT(expr, msg) _Static_assert((expr), msg)
+#else
+#define STATIC_ASSERT(check, msg)
+#endif
+
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#elif defined(HAVE_NETBSD)