windows-nt/Source/XPSP1/NT/base/crts/libw32/inc64/minmax.h

29 lines
439 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/***
*minmax.h - familiar min & max macros
*
* Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines min and max macros.
*
* [Public]
*
****/
#if _MSC_VER > 1000
#pragma once
#endif
#ifndef _INC_MINMAX
#define _INC_MINMAX
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#endif