mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-01 21:23:52 +00:00
Fix for redefinition warning
This commit is contained in:
parent
27cb792c52
commit
e6f508dc14
@ -12,18 +12,24 @@
|
||||
#if defined(CLI11_CPP17) && __has_include(<optional>)
|
||||
#include <optional>
|
||||
#ifdef __cpp_lib_optional
|
||||
#ifndef CLI11_STD_OPTIONAL
|
||||
#define CLI11_STD_OPTIONAL
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#if defined(CLI11_CPP14) && __has_include(<experimental/optional>)
|
||||
#include <experimental/optional>
|
||||
#ifndef CLI11_EXPERIMENTAL_OPTIONAL
|
||||
#define CLI11_EXPERIMENTAL_OPTIONAL
|
||||
#endif
|
||||
#endif
|
||||
#if __has_include(<boost/optional.hpp>)
|
||||
#include <boost/optional.hpp>
|
||||
#ifndef CLI11_BOOST_OPTIONAL
|
||||
#define CLI11_BOOST_OPTIONAL
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
// [CLI11:verbatim]
|
||||
|
||||
namespace CLI {
|
||||
|
Loading…
x
Reference in New Issue
Block a user