Corrected compilation on linux - added conditional min macros.

This commit is contained in:
skarg
2008-10-29 03:49:43 +00:00
parent 2797764d65
commit 23d2cd6592
4 changed files with 24 additions and 2 deletions
+5
View File
@@ -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 */