ReactOS 0.4.16-dev-1059-gb1cf981
minmax.h
Go to the documentation of this file.
1//
2// minmax.h
3//
4// Copyright (c) Microsoft Corporation. All rights reserved.
5//
6// Familiar min() and max() macros
7//
8#pragma once
9#ifndef _INC_MINMAX
10#define _INC_MINMAX
11
12#include <corecrt.h>
13
14#pragma warning(push)
15#pragma warning(disable: _UCRT_DISABLED_WARNINGS)
17
18#ifndef max
19 #define max(a ,b) (((a) > (b)) ? (a) : (b))
20#endif
21
22#ifndef min
23 #define min(a, b) (((a) < (b)) ? (a) : (b))
24#endif
25
27#pragma warning(pop) // _UCRT_DISABLED_WARNINGS
28#endif // _INC_MINMAX
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition: corecrt.h:109
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition: corecrt.h:117