History

tcc_add_dll is not used if TCC_TARGET_PE

after "tccpp: fix issues, add tests"

seyko committed 11 years ago

Commit cb7e8201 parent ff06d422 files · +6 −0Browse files

Unified · Split

2 files
  1. libtcc.c +2 −0
  2. tcc.h +4 −0
libtcc.c+2−0
@@ -1273,6 +1273,7 @@ static int tcc_add_library_internal(TCCState *s, const char *fmt, · 1272 unmodified lines
12731273 return -1;
12741274 }
12751275
1276+#ifndef TCC_TARGET_PE
12761277 /* find and load a dll. Return non zero if not found */
12771278 /* XXX: add '-rpath' option support ? */
12781279 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) · 1 unmodified line
12801281 return tcc_add_library_internal(s, "%s/%s", filename, flags,
12811282 s->library_paths, s->nb_library_paths);
12821283 }
1284+#endif
12831285
12841286 ST_FUNC int tcc_add_crt(TCCState *s, const char *filename)
12851287 {
tcc.h+4−0
@@ -1118,7 +1118,11 @@ ST_FUNC void tcc_close(void); · 1117 unmodified lines
11181118
11191119 ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags, int filetype);
11201120 ST_FUNC int tcc_add_crt(TCCState *s, const char *filename);
1121+
1122+#ifndef TCC_TARGET_PE
11211123 ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);
1124+#endif
1125+
11221126 ST_FUNC void tcc_add_pragma_libs(TCCState *s1);
11231127 PUB_FUNC int tcc_add_library_err(TCCState *s, const char *f);
11241128