summaryrefslogtreecommitdiff
path: root/ccan/list
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-26 10:53:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-26 18:57:26 +0900
commita14611cd54d2ac02daad5ccfe99fc3ec9b0818bd (patch)
tree596aeff57c327089a1fea6a913eeaf92ef8e32b4 /ccan/list
parent287eac5e8ecb774edcc3e4000f3b4848700d23e4 (diff)
downloadruby-a14611cd54d2ac02daad5ccfe99fc3ec9b0818bd.tar.gz
Fix -Wundef warnings
Diffstat (limited to 'ccan/list')
-rw-r--r--ccan/list/list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/list/list.h b/ccan/list/list.h
index 91787bfdb3..30b2af04e9 100644
--- a/ccan/list/list.h
+++ b/ccan/list/list.h
@@ -770,7 +770,7 @@ static inline struct ccan_list_node *ccan_list_node_from_off_(void *ptr, size_t
(ccan_container_off_var(var, member) + \
ccan_check_type(var->member, struct ccan_list_node))
-#if HAVE_TYPEOF
+#if defined(HAVE_TYPEOF) && HAVE_TYPEOF
#define ccan_list_typeof(var) typeof(var)
#else
#define ccan_list_typeof(var) void *