Fixed MAX and MIN macros.
This commit is contained in:
parent
4812a5968b
commit
8f7cc0b7a7
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue