mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Add MOCK_CXX_VERSION macro
This commit is contained in:
parent
f18da714f2
commit
c34cbb56ab
1 changed files with 14 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// http://turtle.sourceforge.net
|
||||
//
|
||||
// Copyright Mathieu Champlon 2009
|
||||
// Copyright 2020-2025 Alexander Grund
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
|
|
@ -30,4 +31,17 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_VERSION >= 107700
|
||||
# define MOCK_CXX_VERSION BOOST_CXX_VERSION
|
||||
#elif defined(_MSC_VER)
|
||||
# ifdef _MSVC_LANG
|
||||
# define MOCK_CXX_VERSION _MSVC_LANG
|
||||
# elif defined(_HAS_CXX17)
|
||||
# define MOCK_CXX_VERSION 201703L
|
||||
# endif
|
||||
#endif
|
||||
#ifndef MOCK_CXX_VERSION
|
||||
# define MOCK_CXX_VERSION __cplusplus
|
||||
#endif
|
||||
|
||||
#endif // MOCK_CONFIG_HPP_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue