Go to the documentation of this file. 32 #ifndef FLAC__PRIVATE__MACROS_H 33 #define FLAC__PRIVATE__MACROS_H 35 #if defined(__GNUC__) && (defined(__clang__) || __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 3)) 37 #define flac_max(a,b) \ 38 ({ __typeof__ (a) _a = (a); \ 39 __typeof__ (b) _b = (b); \ 42 #define MIN_PASTE(A,B) A##B 43 #define MIN_IMPL(A,B,L) ({ \ 44 __typeof__(A) MIN_PASTE(__a,L) = (A); \ 45 __typeof__(B) MIN_PASTE(__b,L) = (B); \ 46 MIN_PASTE(__a,L) < MIN_PASTE(__b,L) ? MIN_PASTE(__a,L) : MIN_PASTE(__b,L); \ 49 #define flac_min(A,B) MIN_IMPL(A,B,__COUNTER__) 52 #elif defined(HAVE_SYS_PARAM_H) 53 #include <sys/param.h> 54 #define flac_max(a,b) MAX(a,b) 55 #define flac_min(a,b) MIN(a,b) 58 #elif defined(_MSC_VER) 60 #define flac_max(a,b) __max(a,b) 61 #define flac_min(a,b) __min(a,b) 65 #define MIN(x,y) ((x) <= (y) ? (x) : (y)) 69 #define MAX(x,y) ((x) >= (y) ? (x) : (y))