mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
include: Respect NOMINMAX.
This commit is contained in:
@ -201,6 +201,7 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
||||
#endif /* DECLSPEC_HIDDEN */
|
||||
|
||||
/* Define min() & max() macros */
|
||||
#ifndef NOMINMAX
|
||||
# ifndef min
|
||||
# define min(a, b) (((a) <= (b)) ? (a) : (b))
|
||||
# endif
|
||||
@ -208,6 +209,7 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
||||
# ifndef max
|
||||
# define max(a, b) (((a) >= (b)) ? (a) : (b))
|
||||
# endif
|
||||
#endif /* NOMINMAX */
|
||||
|
||||
#ifndef DEFINE_ENUM_FLAG_OPERATORS
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user