Browse Source

[core] __attribute__((fallthrough)) for GCC 7.0

personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent
commit
97d4c11ba6
  1. 7
      src/first.h

7
src/first.h

@ -111,5 +111,12 @@
#endif
#endif
#if __has_attribute(fallthrough) \
|| __GNUC_PREREQ(7,0)
#define __attribute_fallthrough__ __attribute__((__fallthrough__));
#else
#define __attribute_fallthrough__
#endif
#endif

Loading…
Cancel
Save