From ca38792df17fc5c8d2bb6757c512101610420f1e Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 1 Sep 2012 11:33:34 +0200 Subject: tccrun: another incompatible change to the tcc_relocate API We are now compatible with the 0.9,25 version though. A special value for the second (ptr) argument is used to get the simple behavior as with the 0.9.24 version. --- tests/libtcc_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libtcc_test.c') diff --git a/tests/libtcc_test.c b/tests/libtcc_test.c index 5a4c800..bead0ff 100644 --- a/tests/libtcc_test.c +++ b/tests/libtcc_test.c @@ -58,7 +58,7 @@ int main(int argc, char **argv) tcc_add_symbol(s, "add", add); /* relocate the code */ - if (tcc_relocate(s) < 0) + if (tcc_relocate(s, TCC_RELOCATE_AUTO) < 0) return 1; /* get entry symbol */ -- cgit v1.3.1