From 0c2e2d13010ff92363f43cf7ec1b657a86db2e86 Mon Sep 17 00:00:00 2001 From: RonxBulld <526677628@qq.com> Date: Thu, 29 Apr 2021 10:09:51 +0800 Subject: [PATCH] Rename NO_REGEX -> CXXOPTS_NO_REGEX --- include/cxxopts.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 694a2b5..58d5a3d 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -43,13 +43,13 @@ THE SOFTWARE. #if defined(__GNUC__) && !defined(__clang__) # if (__GNUC__ * 10 + __GNUC_MINOR__) < 49 -# define NO_REGEX true +# define CXXOPTS_NO_REGEX true # endif #endif -#ifndef NO_REGEX +#ifndef CXXOPTS_NO_REGEX # include -#endif // NO_REGEX +#endif // CXXOPTS_NO_REGEX #ifdef __cpp_lib_optional #include @@ -554,7 +554,7 @@ namespace cxxopts bool set_value = false; std::string value = ""; }; -#ifdef NO_REGEX +#ifdef CXXOPTS_NO_REGEX inline IntegerDesc SplitInteger(const std::string &text) { if (text.empty()) @@ -694,7 +694,7 @@ namespace cxxopts return argu_desc; } -#else // NO_REGEX +#else // CXXOPTS_NO_REGEX namespace { @@ -788,8 +788,8 @@ namespace cxxopts return argu_desc; } -#endif // NO_REGEX -#undef NO_REGEX +#endif // CXXOPTS_NO_REGEX +#undef CXXOPTS_NO_REGEX } namespace detail