Skip to content
Snippets Groups Projects
Commit 821d9789 authored by Józef Kucia's avatar Józef Kucia
Browse files

include: Add min() & max() macros.

parent 2976d779
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,7 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
#endif /* _WIN32 */
/* Nameless unions */
#ifndef __C89_NAMELESS
# ifdef NONAMELESSUNION
# define __C89_NAMELESS
......@@ -189,4 +190,13 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
# endif /* NONAMELESSUNION */
#endif /* __C89_NAMELESS */
/* Define min() & max() macros */
#ifndef min
# define min(a, b) (((a) <= (b)) ? (a) : (b))
#endif
#ifndef max
# define max(a, b) (((a) >= (b)) ? (a) : (b))
#endif
#endif /* __VKD3D_WINDOWS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment