1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-01 13:13:53 +00:00

Fix for single file include order

This commit is contained in:
Henry Fredrick Schreiner 2018-06-01 08:15:54 +02:00 committed by Henry Schreiner
parent 225492f6f2
commit dab61c0107
2 changed files with 4 additions and 9 deletions

View File

@ -3,12 +3,9 @@
// Distributed under the 3-Clause BSD License. See accompanying
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
namespace CLI {
// Note that all code in CLI11 must be in a namespace, even if it just a define.
// [CLI11:verbatim]
// The following version macro is very similar to the one in PyBind11
#if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER)
#if __cplusplus >= 201402L
#define CLI11_CPP14
@ -41,4 +38,4 @@ namespace CLI {
#define CLI11_DEPRECATED(reason) __attribute__((deprecated(reason)))
#endif
} // namespace CLI
// [CLI11:verbatim]

View File

@ -3,13 +3,11 @@
// Distributed under the 3-Clause BSD License. See accompanying
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
namespace CLI {
// Note that all code in CLI11 must be in a namespace, even if it just a define.
// [CLI11:verbatim]
#define CLI11_VERSION_MAJOR 1
#define CLI11_VERSION_MINOR 5
#define CLI11_VERSION_PATCH 3
#define CLI11_VERSION "1.5.3"
} // namespace CLI
// [CLI11:verbatim]