Commit 5887216a authored by Rusty Russell's avatar Rusty Russell

asort: fix test when typesafe_cb not supported.

Solaris CC seems to support typeof, but not __builtin_types_compatible_p.
parent 74859ab1
...@@ -9,9 +9,10 @@ static int cmp(char *const *a, char *const *b, int *flag) ...@@ -9,9 +9,10 @@ static int cmp(char *const *a, char *const *b, int *flag)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
#ifdef FAIL #ifdef FAIL
#if HAVE_TYPEOF && HAVE_BUILTIN_CHOOSE_EXPR && HAVE_BUILTIN_TYPES_COMPATIBLE_P
char flag; char flag;
#if !HAVE_TYPEOF #else
#error "Unfortunately we don't fail if no typeof." #error "Unfortunately we don't fail if no typecheck_cb support."
#endif #endif
#else #else
int flag; int flag;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment