mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-08-06 15:55:43 +02:00
Add inttypes defs to common_includes.h
This commit is contained in:
parent
e88f92cf4a
commit
e767bb9fe9
1 changed files with 15 additions and 0 deletions
|
@ -65,6 +65,18 @@
|
||||||
#include <ntsecapi.h>
|
#include <ntsecapi.h>
|
||||||
#undef SystemFunction036
|
#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
|
#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)
|
#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
|
#endif
|
||||||
|
@ -126,6 +138,9 @@ inline void reset_LastError()
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <utime.h>
|
#include <utime.h>
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
#define PRI_ZU "zu"
|
||||||
|
|
||||||
#define PATH_MAX_STRING_SIZE 512
|
#define PATH_MAX_STRING_SIZE 512
|
||||||
|
|
||||||
#ifndef EMU_RELEASE_BUILD
|
#ifndef EMU_RELEASE_BUILD
|
||||||
|
|
Loading…
Add table
Reference in a new issue