ReactOS
0.4.16-dev-1946-g52006dd
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)
16
_UCRT_DISABLE_CLANG_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
26
_UCRT_RESTORE_CLANG_WARNINGS
27
#pragma warning(pop)
// _UCRT_DISABLED_WARNINGS
28
#endif
// _INC_MINMAX
corecrt.h
_UCRT_DISABLE_CLANG_WARNINGS
#define _UCRT_DISABLE_CLANG_WARNINGS
Definition:
corecrt.h:109
_UCRT_RESTORE_CLANG_WARNINGS
#define _UCRT_RESTORE_CLANG_WARNINGS
Definition:
corecrt.h:117
sdk
include
ucrt
minmax.h
Generated on Thu Dec 4 2025 06:14:28 for ReactOS by
1.9.6