diff --git a/src/list.h b/src/list.h index f2292c7..dd8f2aa 100644 --- a/src/list.h +++ b/src/list.h @@ -15,6 +15,11 @@ extern "C" { #include +/* suppress compilation warnings on macOS */ +#ifdef LIST_HEAD +#undef LIST_HEAD +#endif + /* "typeof" is a GNU extension. * Reference: https://gcc.gnu.org/onlinedocs/gcc/Typeof.html */