From dab61c0107911b4626c64376e920d6d13f0401ff Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Fri, 1 Jun 2018 08:15:54 +0200 Subject: [PATCH] Fix for single file include order --- include/CLI/Macros.hpp | 7 ++----- include/CLI/Version.hpp | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/include/CLI/Macros.hpp b/include/CLI/Macros.hpp index 9c10b081..6defe59a 100644 --- a/include/CLI/Macros.hpp +++ b/include/CLI/Macros.hpp @@ -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] diff --git a/include/CLI/Version.hpp b/include/CLI/Version.hpp index 842a9eec..7db031e5 100644 --- a/include/CLI/Version.hpp +++ b/include/CLI/Version.hpp @@ -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]