mirror of https://github.com/OpenTTD/OpenTTD.git
Cleanup: remove typedefs for non _t (u)int types and WChar
This commit is contained in:
parent
eaae0bb5e7
commit
461b4b8861
17
src/stdafx.h
17
src/stdafx.h
|
@ -298,15 +298,6 @@ typedef uint8_t byte;
|
|||
typedef unsigned int uint;
|
||||
#endif
|
||||
|
||||
typedef uint8_t uint8;
|
||||
typedef int8_t int8;
|
||||
typedef uint16_t uint16;
|
||||
typedef int16_t int16;
|
||||
typedef uint32_t uint32;
|
||||
typedef int32_t int32;
|
||||
typedef uint64_t uint64;
|
||||
typedef int64_t int64;
|
||||
|
||||
#if !defined(WITH_PERSONAL_DIR)
|
||||
# define PERSONAL_DIR ""
|
||||
#endif
|
||||
|
@ -317,10 +308,10 @@ typedef int64_t int64;
|
|||
#endif
|
||||
|
||||
/* Check if the types have the bitsizes like we are using them */
|
||||
static_assert(sizeof(uint64) == 8);
|
||||
static_assert(sizeof(uint32) == 4);
|
||||
static_assert(sizeof(uint16) == 2);
|
||||
static_assert(sizeof(uint8) == 1);
|
||||
static_assert(sizeof(uint64_t) == 8);
|
||||
static_assert(sizeof(uint32_t) == 4);
|
||||
static_assert(sizeof(uint16_t) == 2);
|
||||
static_assert(sizeof(uint8_t) == 1);
|
||||
static_assert(SIZE_MAX >= UINT32_MAX);
|
||||
|
||||
#ifndef M_PI_2
|
||||
|
|
|
@ -30,9 +30,6 @@ enum CharSetFilter {
|
|||
CS_HEXADECIMAL, ///< Only hexadecimal characters
|
||||
};
|
||||
|
||||
/** Type for wide characters, i.e. non-UTF8 encoded unicode characters. */
|
||||
typedef char32_t WChar;
|
||||
|
||||
/* The following are directional formatting codes used to get the LTR and RTL strings right:
|
||||
* http://www.unicode.org/unicode/reports/tr9/#Directional_Formatting_Codes */
|
||||
static const char32_t CHAR_TD_LRM = 0x200E; ///< The next character acts like a left-to-right character.
|
||||
|
|
Loading…
Reference in New Issue