There is no standard name in the ISO C specification for this type.
compar_fn_t isn't defined anywhere. comparison_fn_t is a glibc
extension that is only defined with _GNU_SOURCE.
__compar_fn_t at least has the advantage of always working on glibc.
[CCode (cheader_filename = "stdlib.h")]
public int system (string command);
- [CCode (has_target = false, cheader_filename = "stdlib.h")]
+ [CCode (has_target = false, cheader_filename = "stdlib.h", cname = "__compar_fn_t")]
public delegate int compar_fn_t (void* key1, void* key2);
[CCode (cheader_filename = "stdlib.h")]