Skip to content

Commit

Permalink
fix espconn and err_t (#5392)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored Nov 29, 2018
1 parent c677714 commit 4f86a68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/sdk/include/espconn.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
extern "C" {
#endif

typedef sint8 err_t;
//typedef sint8 err_t;
// err_t has been redefined by espressif,
// use autogenerated <lwip-err-t.h> to define LWIP_ERR_T,
// this is compatible with both versions of lwIP.
#include <../../lwip2/include/lwip-err-t.h>
#include <lwip/err.h>

typedef void *espconn_handle;
typedef void (* espconn_connect_callback)(void *arg);
Expand Down

0 comments on commit 4f86a68

Please sign in to comment.