diff options
author | Jürg Billeter <j@bitron.ch> | 2010-07-23 10:48:58 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-07-23 11:36:26 +0200 |
commit | d3638625c7a5c7bb4c801906899e11c0a74e3b5b (patch) | |
tree | 084ca3856df32abf3f62bd7395959ddad1c25f04 /vala/valanulltype.vala | |
parent | 35998647cb30c758d2d045f2b4dc36d7bb6bf981 (diff) | |
download | vala-d3638625c7a5c7bb4c801906899e11c0a74e3b5b.tar.gz |
dova: Fix cname of null type
Diffstat (limited to 'vala/valanulltype.vala')
-rw-r--r-- | vala/valanulltype.vala | 8 |
1 files changed, 6 insertions, 2 deletions
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 () { |