[macros] #ifndef MAX

on some platforms the macro is part of the standard library, only define
if not already there.
This commit is contained in:
Armin Novak
2025-08-20 11:38:12 +02:00
parent 4fadd12047
commit 058cfa972f
2 changed files with 7 additions and 0 deletions

View File

@@ -25,8 +25,13 @@
#include <winpr/crypto.h>
#include <freerdp/utils/encoded_types.h>
#ifndef MIN
#define MIN(x, y) ((x) < (y)) ? (x) : (y)
#endif
#ifndef MAX
#define MAX(x, y) ((x) > (y)) ? (x) : (y)
#endif
static BOOL test_signed_integer_read_write_equal(INT32 value)
{