http-socket.h: include cc.h instead of re-defining MAX
This commit is contained in:
parent
012d426642
commit
80c9f9ea1f
@ -32,6 +32,7 @@
|
|||||||
#define HTTP_SOCKET_H
|
#define HTTP_SOCKET_H
|
||||||
|
|
||||||
#include "tcp-socket.h"
|
#include "tcp-socket.h"
|
||||||
|
#include "sys/cc.h"
|
||||||
|
|
||||||
struct http_socket;
|
struct http_socket;
|
||||||
|
|
||||||
@ -62,8 +63,6 @@ typedef void (* http_socket_callback_t)(struct http_socket *s,
|
|||||||
const uint8_t *data,
|
const uint8_t *data,
|
||||||
uint16_t datalen);
|
uint16_t datalen);
|
||||||
|
|
||||||
#define MAX(n, m) (((n) < (m)) ? (m) : (n))
|
|
||||||
|
|
||||||
#define HTTP_SOCKET_INPUTBUFSIZE UIP_TCP_MSS
|
#define HTTP_SOCKET_INPUTBUFSIZE UIP_TCP_MSS
|
||||||
#define HTTP_SOCKET_OUTPUTBUFSIZE MAX(UIP_TCP_MSS, 128)
|
#define HTTP_SOCKET_OUTPUTBUFSIZE MAX(UIP_TCP_MSS, 128)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user