mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 08:19:02 +08:00
656fcc6ab2
* [fmt] Update to version 10.0.0. * [fmt] Update portfile. - Remove dead code. It is no longer necessary to manually move DLLs and edit CMake configs. - Use vcpkg_install_copyright. * [fmt] Update baseline. * [cachelib] Update to 2023.05.08.00, support fmt 10 * Update to 2023.05.08.00. * Add patch to support fmt 10. * Update baseline. * [spdlog] Add upstream patch for fmt 10. * Add upstream patch to support fmt 10. * Update portfile. * Add usage. * Update baseline. * [seacas] Add upstream patch to support fmt 10.0.0. * Add patch to support fmt 10.0.0. * Update baseline. * [coolprop] Update patch to support fmt 10. * Update patch to support fmt 10.0.0. See CoolProp/CoolProp#2252 * Update baseline. * [wasmedge] Add patch for fmt 10 support. * Add patch to support fmt 10 * Update baseline
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
diff --git a/include/common/enum_errcode.hpp b/include/common/enum_errcode.hpp
|
|
index bda7d9e2..c075ed74 100644
|
|
--- a/include/common/enum_errcode.hpp
|
|
+++ b/include/common/enum_errcode.hpp
|
|
@@ -131,4 +131,8 @@ static inline constexpr const auto ErrCodeStr = []() constexpr {
|
|
}
|
|
();
|
|
|
|
+inline uint32_t format_as(ErrCode code) {
|
|
+ return code.getCode();
|
|
+}
|
|
+
|
|
} // namespace WasmEdge
|
|
diff --git a/thirdparty/wasi/api.hpp b/thirdparty/wasi/api.hpp
|
|
index 97d37c83..53fadf1d 100644
|
|
--- a/thirdparty/wasi/api.hpp
|
|
+++ b/thirdparty/wasi/api.hpp
|
|
@@ -21,6 +21,7 @@
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <type_traits>
|
|
+#include <fmt/format.h>
|
|
|
|
using const_uint8_t_ptr = uint32_t;
|
|
using uint8_t_ptr = uint32_t;
|
|
@@ -562,6 +563,10 @@ enum __wasi_errno_t : uint16_t {
|
|
static_assert(sizeof(__wasi_errno_t) == 2, "witx calculated size");
|
|
static_assert(alignof(__wasi_errno_t) == 2, "witx calculated align");
|
|
|
|
+inline uint16_t format_as(__wasi_errno_t error) {
|
|
+ return fmt::underlying(error);
|
|
+}
|
|
+
|
|
/**
|
|
* File descriptor rights, determining which actions may be performed.
|
|
*/
|