From 6f59cbccb59190ab82b006da19dd3aa7dc15bc39 Mon Sep 17 00:00:00 2001 From: idealvin Date: Sat, 21 Oct 2023 17:51:42 +0800 Subject: [PATCH] export Initializer::Initializer() for dynamic library --- include/co/fast.h | 2 +- include/co/json.h | 2 +- include/co/log.h | 2 +- include/co/mem.h | 2 +- include/co/time.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/co/fast.h b/include/co/fast.h index 7b285dde6..68bda7c86 100644 --- a/include/co/fast.h +++ b/include/co/fast.h @@ -39,7 +39,7 @@ constexpr _fpt _n(double v, int n) { return _fpt(v, n); } namespace fast { namespace xx { -struct Initializer { +struct __coapi Initializer { Initializer(); ~Initializer() = default; }; diff --git a/include/co/json.h b/include/co/json.h index c2f597491..fcba16c6b 100644 --- a/include/co/json.h +++ b/include/co/json.h @@ -11,7 +11,7 @@ namespace json { namespace xx { -struct Initializer { +struct __coapi Initializer { Initializer(); ~Initializer() = default; }; diff --git a/include/co/log.h b/include/co/log.h index cf48c63ae..3fd491a55 100644 --- a/include/co/log.h +++ b/include/co/log.h @@ -54,7 +54,7 @@ __coapi void set_write_cb(const std::function