Browse Source

try to work with gcc 8.3, too

master
Felix von Leitner 3 months ago
parent
commit
c0b851da69
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      compiletimeassert.h

+ 5
- 1
compiletimeassert.h View File

@@ -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


Loading…
Cancel
Save