From 32fcd3e1c3275b9f850ea35a4057c9bbd009c974 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 29 Aug 2021 21:36:28 +0200 Subject: refactor: Improve compatibility definition of DLLIMPORT --- src/Config.cpp | 6 ------ src/core/wincompat.hpp | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index 6169e61c..ec739c8a 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -49,12 +49,6 @@ using nonstd::nullopt; using nonstd::optional; -#if defined(_MSC_VER) -# define DLLIMPORT __declspec(dllimport) -#else -# define DLLIMPORT -#endif - #ifndef environ DLLIMPORT extern char** environ; #endif diff --git a/src/core/wincompat.hpp b/src/core/wincompat.hpp index f983bec0..e550593c 100644 --- a/src/core/wincompat.hpp +++ b/src/core/wincompat.hpp @@ -104,4 +104,6 @@ const mode_t S_IWUSR = mode_t(_S_IWRITE); # define O_BINARY 0 # endif +#else +# define DLLIMPORT #endif // _WIN32 -- cgit v1.2.1