Skip to content
Snippets Groups Projects
Unverified Commit 72be507f authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Add static_assert() macro for old compilers

parent 7e62ac79
No related branches found
No related tags found
No related merge requests found
......@@ -475,6 +475,10 @@ tt_sprintf(const char *format, ...)
} \
} while(0)
#if !defined(__cplusplus) && !defined(static_assert)
# define static_assert _Static_assert
#endif
#if defined(__cplusplus)
} /* extern "C" */
#endif /* defined(__cplusplus) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment