Skip to content

Commit

Permalink
Added a HAVE_CXX20 define
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 17, 2021
1 parent bb49aa8 commit 3ff0b7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/global.hpp
Expand Up @@ -39,9 +39,9 @@

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

// To allow using some optional C++17 features
#if __cplusplus >= 201703L
#define HAVE_CXX17
// To allow using some optional C++20 features (TODO: use the actual C++20 value once that's finalized)
#if __cplusplus > 201703L
#define HAVE_CXX20
#endif

#if defined(__clang__)
Expand Down

0 comments on commit 3ff0b7f

Please sign in to comment.