Browse Source

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.
Rico P 8 years ago
parent
commit
51ab1658ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/filepath.cpp

+ 1 - 1
src/filepath.cpp

@@ -8,7 +8,7 @@
 #include <bx/readerwriter.h>
 #include <bx/readerwriter.h>
 
 
 #if BX_PLATFORM_WINDOWS
 #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
 #endif // BX_PLATFORM_WINDOWS
 
 
 namespace bx
 namespace bx