Fix remaining warnings

This commit is contained in:
Cacodemon345
2021-08-25 13:45:21 +06:00
parent d47d41174b
commit a903e24702
2 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#define HAVE_STDARG_H

View File

@@ -45,6 +45,13 @@
# define ENABLE_LOG_COMMANDS 1
#endif
#ifdef MIN
#undef MIN
#endif
#ifdef MAX
#undef MAX
#endif
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(x) ((x) > 0 ? (x) : -(x))