Fixed MAX and MIN macros.

This commit is contained in:
Jan Vidar Krey 2009-05-28 01:45:36 +02:00
parent 4812a5968b
commit 8f7cc0b7a7

View File

@ -130,8 +130,8 @@
#include "adcconst.h" #include "adcconst.h"
#define MIN(a, b) (a < b ? a : b) #define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) (a > b ? a : b) #define MAX(a, b) ((a) > (b) ? (a) : (b))
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {