[PATCH] Enable building 4.2.0 on non-gcc platforms
Andy Dougherty
doughera at lafayette.edu
Wed Mar 21 16:18:35 UTC 2012
Parrot-4.2.0 won't build on non-gcc platforms (unless the compiler is
unusually forgiving). The gcc-specific portion of pbc_to_exe was
changed, but the non-gcc portion wasn't changed to match. The following
change to pbc_to_exe fixes it, and removes a now-unnecessary cast.
diff -r -u parrot-4.2.0/tools/dev/pbc_to_exe.pir parrot-4.2.0-fixed/tools/dev/pbc_to_exe.pir
--- parrot-4.2.0/tools/dev/pbc_to_exe.pir 2012-03-18 13:35:11.000000000 -0400
+++ parrot-4.2.0-fixed/tools/dev/pbc_to_exe.pir 2012-03-21 12:05:19.000000000 -0400
@@ -90,7 +90,7 @@
initargs->gc_system = GCCORE;
- program_code_addr = (const unsigned char *)get_program_code();
+ program_code_addr = get_program_code();
if (!program_code_addr)
exit(EXIT_FAILURE);
@@ -434,7 +434,7 @@
print outfh, $S0
print outfh, ";\n"
print outfh, <<'END_OF_FUNCTION'
- const void * get_program_code(void)
+ const unsigned char * get_program_code(void)
{
return program_code;
}
@@ -627,7 +627,7 @@
print outfh, ";\n"
print outfh, <<'END_OF_FUNCTION'
- const void * get_program_code(void)
+ const unsigned char * get_program_code(void)
{
HRSRC hResource;
DWORD size;
--
Andy Dougherty doughera at lafayette.edu
More information about the parrot-dev
mailing list