Skip to content
  • Cheng Shao's avatar
    base: fix autoconf detection of C pointer types · 89c1ffd6
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    We used to attempt compiling `foo_t val; *val;` to determine if `foo_t`
    is a pointer type in C. This doesn't work if `foo_t` points to an
    incomplete type, and autoconf will detect `foo_t` as a floating point
    type in that case. Now we use `memset(val, 0, 0)` instead, and it works
    for incomplete types as well.
    89c1ffd6