iEnsures DLIB_FALLTHROUGH macro is only set for GCC>=7 (#1770)

This commit is contained in:
virgile devaux 2019-05-17 02:37:11 +02:00 committed by Davis E. King
parent f584e787b1
commit f0e1d4e471
1 changed files with 1 additions and 1 deletions

View File

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