]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add abs() to short type
authorSteven Oliver <oliver.steven@gmail.com>
Thu, 16 Jan 2014 21:41:23 +0000 (22:41 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 16 Jan 2014 21:41:23 +0000 (22:41 +0100)
Fixes bug 722067

vapi/glib-2.0.vapi

index 06051dfd11c01e85bd8f7dc71b8e29704e7d47ee..db9d1a9cfac56b2562aea22bd3f37cc7f0e5e530 100644 (file)
@@ -1,6 +1,6 @@
 /* glib-2.0.vala
  *
- * Copyright (C) 2006-2012  Jürg Billeter
+ * Copyright (C) 2006-2014  Jürg Billeter
  * Copyright (C) 2006-2008  Raffaele Sandrini
  * Copyright (C) 2007  Mathias Hasselmann
  *
@@ -202,6 +202,8 @@ public struct short {
        public static short max (short a, short b);
        [CCode (cname = "CLAMP")]
        public short clamp (short low, short high);
+       [CCode (cname = "abs", cheader_filename = "stdlib.h")]
+       public static short abs ();
 }
 
 [SimpleType]