Skip to content

Commit

Permalink
fix: fixed_string compilation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Apr 22, 2024
1 parent 031fa62 commit 3a16a02
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/core/include/mp-units/bits/external/fixed_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@
#include <cstdlib>
#include <ostream>
#include <string_view>

#if MP_UNITS_USE_FMTLIB
MP_UNITS_DIAGNOSTIC_PUSH
MP_UNITS_DIAGNOSTIC_IGNORE_UNREACHABLE
MP_UNITS_DIAGNOSTIC_IGNORE_SHADOW
#include <fmt/format.h>
MP_UNITS_DIAGNOSTIC_POP
#else
#include <format>
#endif

#endif

MP_UNITS_EXPORT
Expand Down

0 comments on commit 3a16a02

Please sign in to comment.