From: Mikko Rasa Date: Sun, 11 Dec 2022 09:22:17 +0000 (+0200) Subject: Add dllimport to the declaration of getenv_s on Windows X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=fd92c15d03a27338c08378ad21dd1b83edebeb01 Add dllimport to the declaration of getenv_s on Windows --- diff --git a/source/core/windows/environ.cpp b/source/core/windows/environ.cpp index ff5c2b0..7abf7e5 100644 --- a/source/core/windows/environ.cpp +++ b/source/core/windows/environ.cpp @@ -3,7 +3,7 @@ #include "mutex.h" #ifdef __GNUC__ -extern "C" errno_t getenv_s(size_t *, char *, size_t, const char *); +extern "C" __declspec(dllimport) errno_t getenv_s(size_t *, char *, size_t, const char *); #endif using namespace std;