Skip to content

Commit

Permalink
Added condition to define HAVE_CXX17 macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 21, 2018
1 parent 220ac5f commit deee52c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/global.hpp
Expand Up @@ -48,8 +48,10 @@

#define UNUSED(x) ((void)(x)) /* to avoid warnings */

// To allow using some optional C++14 features
#if __cplusplus >= 201402L
// To allow using some optional C++14 and C++17 features
#if __cplusplus == 201703L
#define HAVE_CXX17
#elif __cplusplus == 201402L
#define HAVE_CXX14
#endif

Expand Down

0 comments on commit deee52c

Please sign in to comment.