From 711a7d12334fd3482fe47b916dc730c3590bc7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Wed, 12 Jun 2024 21:13:39 +0200 Subject: [PATCH] Revert: mongoose: no declspec(dllimport) for static data This (partly) reverts 7c5caf65cd9723eb62d6e8d7f4884d315191c4c0 Static members of a class can be accessed without instantiating the class: https://en.cppreference.com/w/cpp/language/static That is conceptionally different from static data. They require `dllexport`/`dllimport` attributes to be correctly exported from dlls using MSVC. --- Mongoose/Include/Mongoose_Logger.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mongoose/Include/Mongoose_Logger.hpp b/Mongoose/Include/Mongoose_Logger.hpp index 699b992b52..1efd7cc7ae 100644 --- a/Mongoose/Include/Mongoose_Logger.hpp +++ b/Mongoose/Include/Mongoose_Logger.hpp @@ -103,10 +103,10 @@ typedef enum TimingType class Logger { private: - /* MONGOOSE_API */ static int debugLevel; - /* MONGOOSE_API */ static bool timingOn; - /* MONGOOSE_API */ static double clocks[6]; - /* MONGOOSE_API */ static float times[6]; + MONGOOSE_API static int debugLevel; + MONGOOSE_API static bool timingOn; + MONGOOSE_API static double clocks[6]; + MONGOOSE_API static float times[6]; public: static inline void tic(TimingType timingType);