Commit f0e1d4e4 authored by virgile devaux's avatar virgile devaux Committed by Davis E. King

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

parent f584e787
...@@ -24,7 +24,7 @@ namespace dlib ...@@ -24,7 +24,7 @@ namespace dlib
// Microsoft Visual Studio // Microsoft Visual Studio
#if (defined(__GNUC__) || defined(__clang__)) #if ((defined(__GNUC__) && __GNUC__ >= 7) || defined(__clang__))
#define DLIB_FALLTHROUGH [[fallthrough]] #define DLIB_FALLTHROUGH [[fallthrough]]
#else #else
#define DLIB_FALLTHROUGH #define DLIB_FALLTHROUGH
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment