mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Fix uint64_t printf() format string for Windows.
This commit is contained in:
parent
3e0c3efa74
commit
c9d54381a5
2 changed files with 5 additions and 3 deletions
|
@ -2280,7 +2280,7 @@ uint8_t *QVk_GetStagingBuffer(VkDeviceSize size, int alignment, VkCommandBuffer
|
|||
stagingBuffer = &vk_stagingBuffers[vk_activeStagingBuffer];
|
||||
if (size > stagingBuffer->resource.size)
|
||||
{
|
||||
R_Printf(PRINT_ALL, "%s: %d: Resize stanging buffer" YQ2_COM_PRIdS "%lu\n",
|
||||
R_Printf(PRINT_ALL, "%s: %d: Resize stanging buffer" YQ2_COM_PRIdS "->" YQ2_COM_PRId64 "\n",
|
||||
__func__, vk_activeStagingBuffer, stagingBuffer->resource.size, size);
|
||||
|
||||
DestroyStagingBuffer(stagingBuffer);
|
||||
|
|
|
@ -716,11 +716,13 @@ void Com_MDPrintf(char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
|
|||
YQ2_ATTR_NORETURN void Com_Error(int code, char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
|
||||
YQ2_ATTR_NORETURN void Com_Quit(void);
|
||||
|
||||
/* Ugly hack: Apprently (our?) MinGW-gcc under Windows
|
||||
doesn't support %zd and requires %Id. */
|
||||
/* Ugly work around for unsupported
|
||||
* format specifiers unter mingw. */
|
||||
#ifdef WIN32
|
||||
#define YQ2_COM_PRId64 "%I64d"
|
||||
#define YQ2_COM_PRIdS "%Id"
|
||||
#else
|
||||
#define YQ2_COM_PRId64 "%ld"
|
||||
#define YQ2_COM_PRIdS "%zd"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue