Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / outcome / experimental / status-code / nt_code.hpp
index e1c702f..2b10e83 100644 (file)
@@ -47,8 +47,10 @@ namespace win32
   // A Win32 HMODULE
   using HMODULE = void *;
   // Used to retrieve where the NTDLL DLL is mapped into memory
-  extern "C" HMODULE __stdcall GetModuleHandleW(const wchar_t *lpModuleName);
-}
+  extern HMODULE __stdcall GetModuleHandleW(const wchar_t *lpModuleName);
+#pragma comment(lib, "kernel32.lib")
+#pragma comment(linker, "/alternatename:?GetModuleHandleW@win32@system_error2@@YAPEAXPEB_W@Z=GetModuleHandleW")
+}  // namespace win32
 
 class _nt_code_domain;
 //! (Windows only) A NT error code, those returned by NT kernel functions.