mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24: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
|
||||
}
|
||||
|
||||
#define ASYNC_BUFSIZE 8 * 1024
|
||||
#define ASYNC_LOCAL_BUFSIZE 64 * 1024
|
||||
#define ASYNC_BUFSIZE (8 * 1024)
|
||||
#define ASYNC_LOCAL_BUFSIZE (64 * 1024)
|
||||
|
||||
// TODO: Use Thread Safety Analysis when this file is converted to C++
|
||||
struct ASYNCIO
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
// support older SDL version (pre 2.0.6)
|
||||
#ifndef SDL_JOYSTICK_AXIS_MIN
|
||||
#define SDL_JOYSTICK_AXIS_MIN -32768
|
||||
#define SDL_JOYSTICK_AXIS_MIN (-32768)
|
||||
#endif
|
||||
#ifndef SDL_JOYSTICK_AXIS_MAX
|
||||
#define SDL_JOYSTICK_AXIS_MAX 32767
|
||||
|
|
|
@ -84,7 +84,7 @@ struct CFontSizeData
|
|||
|
||||
#define MIN_FONT_SIZE 6
|
||||
#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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue