]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix cname of null type
authorJürg Billeter <j@bitron.ch>
Fri, 23 Jul 2010 08:48:58 +0000 (10:48 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 23 Jul 2010 09:36:26 +0000 (11:36 +0200)
vala/valanulltype.vala

index ca2bce61f740450b4ffed3e7b708261129728c3f..fdba4a73020f3ce3b842163120c8f5db3afff06e 100644 (file)
@@ -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 () {