mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
iEnsures DLIB_FALLTHROUGH macro is only set for GCC>=7 (#1770)
This commit is contained in:
parent
f584e787b1
commit
f0e1d4e471
@ -24,7 +24,7 @@ namespace dlib
|
||||
// Microsoft Visual Studio
|
||||
|
||||
|
||||
#if (defined(__GNUC__) || defined(__clang__))
|
||||
#if ((defined(__GNUC__) && __GNUC__ >= 7) || defined(__clang__))
|
||||
#define DLIB_FALLTHROUGH [[fallthrough]]
|
||||
#else
|
||||
#define DLIB_FALLTHROUGH
|
||||
|
Loading…
Reference in New Issue
Block a user