aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
authorgrischka <grischka>2011-08-06 16:49:30 +0200
committergrischka <grischka>2011-08-06 16:49:30 +0200
commite844fb11c25293ba346a3470fa4ca33184770538 (patch)
tree77f5bae58a5f458b05f3f630e606d9bb3aa6d95d /tccpe.c
parente6f3bf7f08e4ca32e66db906a7bb2ccefdc7a54d (diff)
downloadtinycc-e844fb11c25293ba346a3470fa4ca33184770538.tar.gz
tinycc-e844fb11c25293ba346a3470fa4ca33184770538.tar.bz2
libtcc: support more than one crtprefix
Looks like gcc has that. Oh Deer!
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/tccpe.c b/tccpe.c
index fb54523..74d0c19 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -1659,21 +1659,6 @@ ST_FUNC int pe_load_file(struct TCCState *s1, const char *filename, int fd)
return ret;
}
-ST_FUNC int pe_add_dll(struct TCCState *s, const char *libname)
-{
- static const char *pat[] = {
- "%s.def", "lib%s.def", "%s.dll", "lib%s.dll", NULL
- };
- const char **p = pat;
- do {
- char buf[MAX_PATH];
- snprintf(buf, sizeof(buf), *p, libname);
- if (tcc_add_dll(s, buf, 0) == 0)
- return 0;
- } while (*++p);
- return -1;
-}
-
/* ------------------------------------------------------------- */
#ifdef TCC_TARGET_X86_64
static unsigned pe_add_uwwind_info(TCCState *s1)