Skip to content

Commit

Permalink
fix: Suppress compilation warnings on macOS
Browse files Browse the repository at this point in the history
Close #99
  • Loading branch information
jserv committed Apr 10, 2019
1 parent 011178b commit 78f6fc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ extern "C" {

#include <stddef.h>

/* 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
*/
Expand Down

0 comments on commit 78f6fc8

Please sign in to comment.