Skip to content

Commit

Permalink
fix: fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
windowsair committed Feb 16, 2024
1 parent 16f8b53 commit fa3e6ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main/usbip_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa3e6ec

Please sign in to comment.