From 78f6fc8d0e5e7a3a7ee1a0453318a974bf60280d Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Wed, 10 Apr 2019 16:10:24 +0800 Subject: [PATCH] fix: Suppress compilation warnings on macOS Close #99 --- src/list.h | 5 +++++ 1 file changed, 5 insertions(+) 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 */