From fd92c15d03a27338c08378ad21dd1b83edebeb01 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 11 Dec 2022 11:22:17 +0200 Subject: [PATCH] Add dllimport to the declaration of getenv_s on Windows --- source/core/windows/environ.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2