aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-05-10 11:37:36 +0300
committerseyko <seyko2@gmail.com>2015-05-10 11:37:36 +0300
commitcb7e820eaebed7963196f3ef90e2e1e945abec8d (patch)
tree763f6300a4339e07ee0359f5035a8a47eed43d61 /libtcc.c
parentff06d4258eb4862b6ab01999d07fc4a888f0295c (diff)
downloadtinycc-cb7e820eaebed7963196f3ef90e2e1e945abec8d.tar.gz
tinycc-cb7e820eaebed7963196f3ef90e2e1e945abec8d.tar.bz2
tcc_add_dll is not used if TCC_TARGET_PE
after "tccpp: fix issues, add tests"
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index c58f454..dfdf85b 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1273,6 +1273,7 @@ static int tcc_add_library_internal(TCCState *s, const char *fmt,
return -1;
}
+#ifndef TCC_TARGET_PE
/* find and load a dll. Return non zero if not found */
/* XXX: add '-rpath' option support ? */
ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags)
@@ -1280,6 +1281,7 @@ ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags)
return tcc_add_library_internal(s, "%s/%s", filename, flags,
s->library_paths, s->nb_library_paths);
}
+#endif
ST_FUNC int tcc_add_crt(TCCState *s, const char *filename)
{