]> git.tdb.fi Git - libs/core.git/commitdiff
Add dllimport to the declaration of getenv_s on Windows
authorMikko Rasa <tdb@tdb.fi>
Sun, 11 Dec 2022 09:22:17 +0000 (11:22 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 11 Dec 2022 09:22:17 +0000 (11:22 +0200)
source/core/windows/environ.cpp

index ff5c2b001dcb2691fb09871b1afc129882589a1b..7abf7e55044cf236b46c73ca387cb3e7d6580398 100644 (file)
@@ -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;