src/libFLAC/include/private/macros.h : Add default MIN/MAX macros.

This commit is contained in:
Erik de Castro Lopo 2013-04-07 20:21:24 +10:00
parent 03a9e6064d
commit 2de567fb11

View File

@ -61,6 +61,14 @@
#define flac_min(a,b) __min(a,b)
#endif
#ifndef MIN
#define MIN(x,y) ((x) <= (y) ? (x) : (y))
#endif
#ifndef MAX
#define MAX(x,y) ((x) >= (y) ? (x) : (y))
#endif
#if !defined(__cplusplus) && defined(_MSC_VER)
#ifndef inline
#define inline __inline