mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-22 03:31:31 +00:00
Move format specifier macros to idlib/sys/sys_defines.h
This commit is contained in:
parent
69f26fbe11
commit
e4605633f0
6 changed files with 23 additions and 17 deletions
|
@ -48,7 +48,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
#include "../sys/sys_savegame.h"
|
||||
|
||||
#include "../portability/inttypes.h"
|
||||
#include "idlib/sys/sys_defines.h"
|
||||
|
||||
#if defined( _DEBUG )
|
||||
#define BUILD_DEBUG "-debug"
|
||||
|
|
|
@ -31,7 +31,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#pragma hdrstop
|
||||
|
||||
#include "Unzip.h"
|
||||
#include "../portability/inttypes.h"
|
||||
#include "idlib/sys/sys_defines.h"
|
||||
|
||||
/*
|
||||
=================
|
||||
|
|
|
@ -36,7 +36,7 @@ Contains external code for building ZipFiles.
|
|||
*/
|
||||
|
||||
#include "Zip.h"
|
||||
#include "../portability/inttypes.h"
|
||||
#include "idlib/sys/sys_defines.h"
|
||||
|
||||
// #undef STDC
|
||||
|
||||
|
|
|
@ -257,3 +257,22 @@ extern volatile int ignoredReturnValue;
|
|||
#define MIN_UNSIGNED_TYPE( x ) 0
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Macros for format conversion specifications for integer arguments of type
|
||||
* size_t or ssize_t.
|
||||
*/
|
||||
#ifdef _MSV_VER
|
||||
|
||||
#define PRIiSIZE "Ii"
|
||||
#define PRIuSIZE "Iu"
|
||||
#define PRIxSIZE "Ix"
|
||||
|
||||
#else // ifdef _MSV_VER
|
||||
|
||||
#define PRIiSIZE "zi"
|
||||
#define PRIuSIZE "zu"
|
||||
#define PRIxSIZE "zx"
|
||||
|
||||
#endif // ifdef _MSV_VER
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
/* #define GEN_TREES_H */
|
||||
|
||||
#include "deflate.h"
|
||||
#include "../portability/inttypes.h"
|
||||
#include "idlib/sys/sys_defines.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
# include <ctype.h>
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef _MSV_VER
|
||||
|
||||
#define PRIuSIZE "Iu"
|
||||
#define PRIxSIZE "Ix"
|
||||
|
||||
#else // ifdef _MSV_VER
|
||||
|
||||
#define PRIuSIZE "zu"
|
||||
#define PRIxSIZE "zx"
|
||||
|
||||
#endif // ifdef _MSV_VER
|
Loading…
Reference in a new issue