diff options
| author | grischka <grischka> | 2012-09-01 11:33:34 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2012-09-01 11:33:34 +0200 |
| commit | ca38792df17fc5c8d2bb6757c512101610420f1e (patch) | |
| tree | 2c9c6f33dee69bfadeafe0613c048f2f6cde2dd3 /tests/libtcc_test.c | |
| parent | 56e23984b9cd3b58e1766748524e63f8301ccd68 (diff) | |
| download | tinycc-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/libtcc_test.c')
| -rw-r--r-- | tests/libtcc_test.c | 2 |
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 */ |
