summaryrefslogtreecommitdiff
path: root/ccan/check_type/check_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/check_type/check_type.h')
-rw-r--r--ccan/check_type/check_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h
index e795ad71d0..659e1a5a83 100644
--- a/ccan/check_type/check_type.h
+++ b/ccan/check_type/check_type.h
@@ -44,7 +44,7 @@
* ((encl_type *) \
* ((char *)(mbr_ptr) - offsetof(enclosing_type, mbr))))
*/
-#if HAVE_TYPEOF
+#if defined(HAVE_TYPEOF) && HAVE_TYPEOF
#define ccan_check_type(expr, type) \
((typeof(expr) *)0 != (type *)0)