From 51ab1658ea0b008b09b53ce1131beb232e74deba Mon Sep 17 00:00:00 2001 From: Rico P Date: Fri, 29 Sep 2017 17:58:40 +0200 Subject: [PATCH] fix error C2733: "second C linkage of overloaded function not allowed" (#160) I consistently get the error "second C linkage of overloaded function not allowed". Changing uint32_t to unsigned long to make the function declaration match it's original fixes this issue for me. --- src/filepath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filepath.cpp b/src/filepath.cpp index 09343b2..c99eb27 100644 --- a/src/filepath.cpp +++ b/src/filepath.cpp @@ -8,7 +8,7 @@ #include #if BX_PLATFORM_WINDOWS -extern "C" __declspec(dllimport) uint32_t __stdcall GetTempPathA(uint32_t _max, char* _ptr); +extern "C" __declspec(dllimport) unsigned long __stdcall GetTempPathA(unsigned long _max, char* _ptr); #endif // BX_PLATFORM_WINDOWS namespace bx