mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
|
||||
#include <winpr/collections.h>
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a, b) ((a) > (b)) ? (a) : (b)
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user