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
3eee09f6
Verified
Commit
3eee09f6
authored
Oct 03, 2020
by
Justin Carpentier
Browse files
macros: fix support of Windows compilers
parent
3f36837e
Pipeline
#11545
passed with stage
in 112 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/macros.hpp
View file @
3eee09f6
//
// Copyright (c) 2017-20
19
CNRS INRIA
// Copyright (c) 2017-20
20
CNRS INRIA
//
#ifndef __pinocchio_macros_hpp__
#define __pinocchio_macros_hpp__
#if __cplusplus >= 201103L
#define PINOCCHIO_WITH_CXX11_SUPPORT
// 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
#define PINOCCHIO_WITH_CXX17_SUPPORT
#elif defined(_MSVC_LANG)
#if _MSVC_LANG >= 201703L
#define PINOCCHIO_WITH_CXX17_SUPPORT
#endif
#endif
#if __cplusplus >= 201403L
#define PINOCCHIO_WITH_CXX14_SUPPORT
#elif defined(_MSVC_LANG)
#if _MSVC_LANG >= 201403L
#define PINOCCHIO_WITH_CXX14_SUPPORT
#endif
#endif
#if __cplusplus >= 201703L
#define PINOCCHIO_WITH_CXX17_SUPPORT
#if __cplusplus >= 201103L
#define PINOCCHIO_WITH_CXX11_SUPPORT
#elif defined(_WIN32)
#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