mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix unsafe defines
This commit is contained in:
parent
b6ca8537ae
commit
a9ee57aeb7
|
@ -385,8 +385,8 @@ int io_sync(IOHANDLE io)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ASYNC_BUFSIZE 8 * 1024
|
#define ASYNC_BUFSIZE (8 * 1024)
|
||||||
#define ASYNC_LOCAL_BUFSIZE 64 * 1024
|
#define ASYNC_LOCAL_BUFSIZE (64 * 1024)
|
||||||
|
|
||||||
// TODO: Use Thread Safety Analysis when this file is converted to C++
|
// TODO: Use Thread Safety Analysis when this file is converted to C++
|
||||||
struct ASYNCIO
|
struct ASYNCIO
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
// support older SDL version (pre 2.0.6)
|
// support older SDL version (pre 2.0.6)
|
||||||
#ifndef SDL_JOYSTICK_AXIS_MIN
|
#ifndef SDL_JOYSTICK_AXIS_MIN
|
||||||
#define SDL_JOYSTICK_AXIS_MIN -32768
|
#define SDL_JOYSTICK_AXIS_MIN (-32768)
|
||||||
#endif
|
#endif
|
||||||
#ifndef SDL_JOYSTICK_AXIS_MAX
|
#ifndef SDL_JOYSTICK_AXIS_MAX
|
||||||
#define SDL_JOYSTICK_AXIS_MAX 32767
|
#define SDL_JOYSTICK_AXIS_MAX 32767
|
||||||
|
|
|
@ -84,7 +84,7 @@ struct CFontSizeData
|
||||||
|
|
||||||
#define MIN_FONT_SIZE 6
|
#define MIN_FONT_SIZE 6
|
||||||
#define MAX_FONT_SIZE 128
|
#define MAX_FONT_SIZE 128
|
||||||
#define NUM_FONT_SIZES MAX_FONT_SIZE - MIN_FONT_SIZE + 1
|
#define NUM_FONT_SIZES (MAX_FONT_SIZE - MIN_FONT_SIZE + 1)
|
||||||
|
|
||||||
class CFont
|
class CFont
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue