From 69ed59dc5b5b837eb0f6247e79c40817fd38051f Mon Sep 17 00:00:00 2001 From: Steven Oliver Date: Thu, 16 Jan 2014 22:41:23 +0100 Subject: [PATCH] glib-2.0: Add abs() to short type Fixes bug 722067 --- vapi/glib-2.0.vapi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 06051dfd1..db9d1a9cf 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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] -- 2.47.2