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:
parent
e307beee29
commit
e9fe4da01e
@ -201,13 +201,15 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
|
|||||||
#endif /* DECLSPEC_HIDDEN */
|
#endif /* DECLSPEC_HIDDEN */
|
||||||
|
|
||||||
/* Define min() & max() macros */
|
/* Define min() & max() macros */
|
||||||
#ifndef min
|
#ifndef NOMINMAX
|
||||||
# define min(a, b) (((a) <= (b)) ? (a) : (b))
|
# ifndef min
|
||||||
#endif
|
# define min(a, b) (((a) <= (b)) ? (a) : (b))
|
||||||
|
# endif
|
||||||
|
|
||||||
#ifndef max
|
# ifndef max
|
||||||
# define max(a, b) (((a) >= (b)) ? (a) : (b))
|
# define max(a, b) (((a) >= (b)) ? (a) : (b))
|
||||||
#endif
|
# endif
|
||||||
|
#endif /* NOMINMAX */
|
||||||
|
|
||||||
#ifndef DEFINE_ENUM_FLAG_OPERATORS
|
#ifndef DEFINE_ENUM_FLAG_OPERATORS
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user