Add inttypes defs to common_includes.h

This commit is contained in:
redpolline 2024-06-24 02:06:58 -04:00
parent e88f92cf4a
commit e767bb9fe9

View file

@ -65,6 +65,18 @@
#include <ntsecapi.h>
#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 <inttypes.h>
#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 <dlfcn.h>
#include <utime.h>
#include <inttypes.h>
#define PRI_ZU "zu"
#define PATH_MAX_STRING_SIZE 512
#ifndef EMU_RELEASE_BUILD