Skip to content

Commit 5cd77dd

Browse files
committed
Add missing module header
1 parent 0a591da commit 5cd77dd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

include/boost/decimal/detail/config.hpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,15 @@ typedef unsigned __int128 uint128_t;
325325
# endif
326326
#endif
327327

328+
// Since we should not be able to pull these in from the STL in module mode define them ourselves
329+
// This is also low risk since they are not supposed to be exported
328330
#ifdef BOOST_DECIMAL_BUILD_MODULE
329-
# define UINT64_C(x) (x ## ULL)
330-
# define UINT32_C(x) (x ## UL)
331+
# ifndef UINT64_C
332+
# define UINT64_C(x) (x ## ULL)
333+
# endif
334+
# ifndef UINT32_C
335+
# define UINT32_C(x) (x ## UL)
336+
# endif
331337
#endif
332338

333339
#endif // BOOST_DECIMAL_DETAIL_CONFIG_HPP

modules/decimal.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module;
2929
#include <system_error>
3030
#include <complex>
3131
#include <compare>
32+
#include <charconv>
3233

3334
// <stdfloat> is a C++23 feature that is not everywhere yet
3435
#if __has_include(<stdfloat>)

0 commit comments

Comments
 (0)