Skip to content

Commit

Permalink
add commented out macro definitions back in.
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Jan 1, 2025
1 parent e0511aa commit e43ff02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
5 changes: 1 addition & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,9 @@ jobs:
Linux14PC:
vmImage: "ubuntu-latest"
cli11.precompile: ON
macOS-15_26:
vmImage: "macOS-15"
cli11.std: 23
macOS-15_23:
vmImage: "macOS-15"
cli11.std: 26
cli11.std: 23
macOS-14_20:
vmImage: "macOS-14"
cli11.std: 20
Expand Down
20 changes: 10 additions & 10 deletions include/CLI/Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,22 @@
#endif

/** <codecvt> availability */
// #if !defined(CLI11_CPP26) && !defined(CLI11_HAS_CODECVT)
#if !defined(CLI11_CPP26) && !defined(CLI11_HAS_CODECVT)
#if defined(__GNUC__) && !defined(__llvm__) && !defined(__INTEL_COMPILER) && __GNUC__ < 5
#define CLI11_HAS_CODECVT 0
#else
#define CLI11_HAS_CODECVT 1
#include <codecvt>
#endif
// #else
// #if defined(CLI11_HAS_CODECVT)
// #if CLI11_HAS_CODECVT > 0
// #include <codecvt>
// #endif
// #else
// #define CLI11_HAS_CODECVT 0
// #endif
// #endif
#else
#if defined(CLI11_HAS_CODECVT)
#if CLI11_HAS_CODECVT > 0
#include <codecvt>
#endif
#else
#define CLI11_HAS_CODECVT 0
#endif
#endif

/** disable deprecations */
#if defined(__GNUC__) // GCC or clang
Expand Down

0 comments on commit e43ff02

Please sign in to comment.