diff --git a/codegen/valatyperegisterfunction.vala b/codegen/valatyperegisterfunction.vala
index 85dfcc0..81fc1fc 100644
--- a/codegen/valatyperegisterfunction.vala
+++ b/codegen/valatyperegisterfunction.vala
@@ -62,7 +62,7 @@ public abstract class Vala.TypeRegisterFunction {
 		if (!plugin) {
 			type_block.add_statement (cdecl);
 		} else {
-			definition_fragment.append (cdecl);
+			declaration_fragment.append (cdecl);
 		}
 
 		CCodeFunction fun;

