From: Joel Rosdahl Date: Sun, 29 Aug 2021 19:36:28 +0000 (+0200) Subject: refactor: Improve compatibility definition of DLLIMPORT X-Git-Tag: v4.4.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32fcd3e1c3275b9f850ea35a4057c9bbd009c974;p=thirdparty%2Fccache.git refactor: Improve compatibility definition of DLLIMPORT --- diff --git a/src/Config.cpp b/src/Config.cpp index 6169e61c4..ec739c8af 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 f983bec0a..e550593cb 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