mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
include: Respect NOMINMAX.
This commit is contained in:
parent
e307beee29
commit
e9fe4da01e
@ -201,13 +201,15 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
||||
#endif /* DECLSPEC_HIDDEN */
|
||||
|
||||
/* Define min() & max() macros */
|
||||
#ifndef min
|
||||
# define min(a, b) (((a) <= (b)) ? (a) : (b))
|
||||
#endif
|
||||
#ifndef NOMINMAX
|
||||
# ifndef min
|
||||
# define min(a, b) (((a) <= (b)) ? (a) : (b))
|
||||
# endif
|
||||
|
||||
#ifndef max
|
||||
# define max(a, b) (((a) >= (b)) ? (a) : (b))
|
||||
#endif
|
||||
# ifndef max
|
||||
# define max(a, b) (((a) >= (b)) ? (a) : (b))
|
||||
# endif
|
||||
#endif /* NOMINMAX */
|
||||
|
||||
#ifndef DEFINE_ENUM_FLAG_OPERATORS
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
x
Reference in New Issue
Block a user