diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-26 10:53:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-26 18:57:26 +0900 |
commit | a14611cd54d2ac02daad5ccfe99fc3ec9b0818bd (patch) | |
tree | 596aeff57c327089a1fea6a913eeaf92ef8e32b4 /ccan/check_type | |
parent | 287eac5e8ecb774edcc3e4000f3b4848700d23e4 (diff) | |
download | ruby-a14611cd54d2ac02daad5ccfe99fc3ec9b0818bd.tar.gz |
Fix -Wundef warnings
Diffstat (limited to 'ccan/check_type')
-rw-r--r-- | ccan/check_type/check_type.h | 2 |
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) |