From: Jürg Billeter Date: Fri, 23 Jul 2010 08:48:58 +0000 (+0200) Subject: dova: Fix cname of null type X-Git-Tag: 0.9.4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3638625c7a5c7bb4c801906899e11c0a74e3b5b;p=thirdparty%2Fvala.git dova: Fix cname of null type --- diff --git a/vala/valanulltype.vala b/vala/valanulltype.vala index ca2bce61f..fdba4a730 100644 --- a/vala/valanulltype.vala +++ b/vala/valanulltype.vala @@ -1,6 +1,6 @@ /* valanulltype.vala * - * Copyright (C) 2007-2009 Jürg Billeter + * Copyright (C) 2007-2010 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -63,7 +63,11 @@ public class Vala.NullType : ReferenceType { } public override string? get_cname () { - return "gpointer"; + if (CodeContext.get ().profile == Profile.GOBJECT) { + return "gpointer"; + } else { + return "void *"; + } } public override bool is_disposable () {