[vala] posix: Use __compar_fn_t as cname for compar_fn_t
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] posix: Use __compar_fn_t as cname for compar_fn_t
- Date: Wed, 10 Mar 2010 06:17:32 +0000 (UTC)
commit ed08578b700621042a7b081853f2ae72cf106ae2
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Mar 10 01:15:51 2010 -0500
posix: Use __compar_fn_t as cname for compar_fn_t
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.
vapi/posix.vapi | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index d032f50..90f8fbd 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -985,7 +985,7 @@ namespace Posix {
[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")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]