Corrected compilation on linux - added conditional min macros.
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
#include "mstp.h"
|
||||
#include "mstptext.h"
|
||||
|
||||
#ifndef max
|
||||
#define max(a,b) (((a) (b)) ? (a) : (b))
|
||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
/* local port data - shared with RS-485 */
|
||||
static volatile struct mstp_port_struct_t MSTP_Port;
|
||||
/* buffers needed by mstp port struct */
|
||||
|
||||
Reference in New Issue
Block a user