aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgrischka <grischka>2012-09-01 11:33:34 +0200
committergrischka <grischka>2012-09-01 11:33:34 +0200
commitca38792df17fc5c8d2bb6757c512101610420f1e (patch)
tree2c9c6f33dee69bfadeafe0613c048f2f6cde2dd3 /tests
parent56e23984b9cd3b58e1766748524e63f8301ccd68 (diff)
downloadtinycc-ca38792df17fc5c8d2bb6757c512101610420f1e.tar.gz
tinycc-ca38792df17fc5c8d2bb6757c512101610420f1e.tar.bz2
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/libtcc_test.c2
1 files changed, 1 insertions, 1 deletions
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 */