From c5ffedf4efa36df0a1011b43d3a86cee440bd8f7 Mon Sep 17 00:00:00 2001 From: Matthias Moulin Date: Sun, 7 Apr 2024 14:16:34 +0200 Subject: [PATCH] Worked around error C2129: static function 'errno_t gmtime_s(tm *const ,const time_t *const )' declared but not defined Cfr. https://developercommunity.visualstudio.com/t/Visual-Studio-cant-find-time-function/1126857 --- src/fmt.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fmt.cc b/src/fmt.cc index 05c9189af3af..25dd7214a693 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -41,8 +41,16 @@ module; #include #include #include +// DIVERGENCE END +// DIVERGENCE BEGIN - Worked around error C2129: static function '...' declared but not defined +#define static +// DIVERGENCE END +// DIVERGENCE BEGIN - Worked around std imports and includes mixing #include // DIVERGENCE END +// DIVERGENCE BEGIN - Worked around error C2129: static function '...' declared but not defined +#undef static +// DIVERGENCE END #if __has_include() # include