0
0
Fork 0

fix: fix compile error

This commit is contained in:
windowsair 2024-02-16 19:22:10 +08:00
parent 16f8b53a76
commit fa3e6ec92f
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,13 @@
#include "lwip/sys.h"
#include <lwip/netdb.h>
#ifndef likely
#define likely(x) __builtin_expect(!!(x), 1)
#endif
#ifndef unlikely
#define unlikely(x) __builtin_expect(!!(x), 0)
#endif
// attach helper function
static int read_stage1_command(uint8_t *buffer, uint32_t length);