From 751bb5bb66eb5d4129947daea8b882b50ed95abe Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 17 Apr 2020 07:50:37 +0000 Subject: [PATCH] try to work with gcc 8.3, too --- compiletimeassert.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiletimeassert.h b/compiletimeassert.h index f9cfb49..2b71aa8 100644 --- a/compiletimeassert.h +++ b/compiletimeassert.h @@ -1,8 +1,12 @@ -#if __STDC_VERSION__ >= 201112L +#if __STDC_VERSION__ >= 201710L #define compiletimeassert(cond) _Static_assert(cond) +#elif __STDC_VERSION__ >= 201112L + +#define compiletimeassert(cond) _Static_assert(cond,"") + #else #define __X(x, y) x ## y