]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Include stdlib.h when using abs function family
authorJürg Billeter <j@bitron.ch>
Thu, 4 Feb 2010 19:00:18 +0000 (20:00 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 4 Feb 2010 19:00:44 +0000 (20:00 +0100)
vapi/glib-2.0.vapi

index e883c44faab179f220bf33ce2e4fad7386778286..7adf3d2a11dd27804286a29eca2907f135f49e4b 100644 (file)
@@ -108,7 +108,7 @@ public struct int {
        [CCode (cname = "GINT_TO_POINTER")]
        public void* to_pointer ();
 
-       [CCode (cname = "abs")]
+       [CCode (cname = "abs", cheader_filename = "stdlib.h")]
        public int abs ();
 
        [CCode (cname = "GINT_TO_BE")]
@@ -213,7 +213,7 @@ public struct long {
        public static long max (long a, long b);
        [CCode (cname = "CLAMP")]
        public long clamp (long low, long high);
-       [CCode (cname = "labs")]
+       [CCode (cname = "labs", cheader_filename = "stdlib.h")]
        public long abs ();
 
        [CCode (cname = "GLONG_TO_BE")]
@@ -513,7 +513,7 @@ public struct int64 {
        public static int64 max (int64 a, int64 b);
        [CCode (cname = "CLAMP")]
        public int64 clamp (int64 low, int64 high);
-       [CCode (cname = "llabs")]
+       [CCode (cname = "llabs", cheader_filename = "stdlib.h")]
        public int64 abs ();
 
        [CCode (cname = "GINT64_TO_BE")]