mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
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.
This commit is contained in:
committed by
Branimir Karadžić
parent
db18c3b854
commit
51ab1658ea
@@ -8,7 +8,7 @@
|
||||
#include <bx/readerwriter.h>
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user