http-socket.h: include cc.h instead of re-defining MAX

This commit is contained in:
Simon Duquennoy 2018-03-02 08:10:41 -08:00
parent 012d426642
commit 80c9f9ea1f
1 changed files with 1 additions and 2 deletions

View File

@ -32,6 +32,7 @@
#define HTTP_SOCKET_H
#include "tcp-socket.h"
#include "sys/cc.h"
struct http_socket;
@ -62,8 +63,6 @@ typedef void (* http_socket_callback_t)(struct http_socket *s,
const uint8_t *data,
uint16_t datalen);
#define MAX(n, m) (((n) < (m)) ? (m) : (n))
#define HTTP_SOCKET_INPUTBUFSIZE UIP_TCP_MSS
#define HTTP_SOCKET_OUTPUTBUFSIZE MAX(UIP_TCP_MSS, 128)