diff --git a/dll/common_includes.h b/dll/common_includes.h index 3b43545..bf9b815 100644 --- a/dll/common_includes.h +++ b/dll/common_includes.h @@ -65,6 +65,18 @@ #include #undef SystemFunction036 + #ifdef _MSC_VER + #ifndef PRIu64 + #define PRIu64 "I64u" + #endif + #ifndef PRIuPTR + #define PRIuPTR "Iu" + #endif + #define PRI_ZU "Iu" // Format specifier for size_t. + #else + #include + #endif + #ifndef EMU_RELEASE_BUILD #define PRINT_DEBUG(a, ...) do {FILE *t = fopen("STEAM_LOG.txt", "a"); fprintf(t, "%u " a, GetCurrentThreadId(), __VA_ARGS__); fclose(t); WSASetLastError(0);} while (0) #endif @@ -126,6 +138,9 @@ inline void reset_LastError() #include #include + #include + #define PRI_ZU "zu" + #define PATH_MAX_STRING_SIZE 512 #ifndef EMU_RELEASE_BUILD