diff --git a/MacroVBCC68k.pl b/MacroVBCC68k.pl index c97b701..9cff3a6 100644 --- a/MacroVBCC68k.pl +++ b/MacroVBCC68k.pl @@ -22,7 +22,7 @@ BEGIN my $regswap = ""; - my $function_start = $$prototype{'return'} ." __" . $$prototype{'funcname'} . "(__reg(\"a6\") struct Library * "; + my $function_start = $$prototype{'return'} ." __" . $$prototype{'funcname'} . "(__reg(\"a6\") void * "; my $function = $function_start; if ($$prototype{private}) diff --git a/Proto.pl b/Proto.pl index 5507767..9113bc3 100644 --- a/Proto.pl +++ b/Proto.pl @@ -38,6 +38,8 @@ BEGIN print "# else\n"; print "# include \n"; print "# endif\n"; + print "# elif defined(__VBCC__)\n"; + print "# include \n"; print "# else\n"; print "# include \n"; print "# endif\n";