Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
a5eff590
Verified
Commit
a5eff590
authored
Oct 03, 2020
by
Justin Carpentier
Browse files
macros: fix definition of PINOCCHIO_WITH_CXX{11,14,17}_SUPPORT
parent
f36b0dae
Pipeline
#11551
passed with stage
in 171 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/macros.hpp
View file @
a5eff590
...
...
@@ -8,28 +8,16 @@
// On Windows, __cplusplus is not necessarily set to the C++ version being used.
// See https://docs.microsoft.com/fr-fr/cpp/build/reference/zc-cplusplus?view=vs-2019 for further information.
#if __cplusplus >= 201703L
#if
(
__cplusplus >= 201703L
|| (defined(_MSVC_LANG) && _MSVC_LANG >= 201703))
#define PINOCCHIO_WITH_CXX17_SUPPORT
#elif defined(_MSVC_LANG) && !(defined(__EDG__) && defined(__clang__))
#if _MSVC_LANG >= 201703L
#define PINOCCHIO_WITH_CXX17_SUPPORT
#endif
#endif
#if __cplusplus >= 201403L
#if
(
__cplusplus >= 201403L
|| (defined(_MSVC_LANG) && _MSVC_LANG >= 201403))
#define PINOCCHIO_WITH_CXX14_SUPPORT
#elif defined(_MSVC_LANG) && !(defined(__EDG__) && defined(__clang__))
#if _MSVC_LANG >= 201403L
#define PINOCCHIO_WITH_CXX14_SUPPORT
#endif
#endif
#if __cplusplus >= 201103L
#if
(
__cplusplus >= 201103L
|| (defined(_MSVC_LANG) && _MSVC_LANG >= 201103))
#define PINOCCHIO_WITH_CXX11_SUPPORT
#elif defined(_WIN32) && !(defined(__EDG__) && defined(__clang__))
#ifdef PINOCCHIO_WITH_CXX14_SUPPORT
#define PINOCCHIO_WITH_CXX11_SUPPORT
#endif
#endif
#define PINOCCHIO_STRING_LITERAL(string) #string
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment