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
1273 return -1;1273 return -1;
1274}1274}
1275 1275
1276#ifndef TCC_TARGET_PE
1276/* find and load a dll. Return non zero if not found */1277/* find and load a dll. Return non zero if not found */
1277/* XXX: add '-rpath' option support ? */1278/* XXX: add '-rpath' option support ? */
1278ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags)1279ST_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
1280 return tcc_add_library_internal(s, "%s/%s", filename, flags,1281 return tcc_add_library_internal(s, "%s/%s", filename, flags,
1281 s->library_paths, s->nb_library_paths);1282 s->library_paths, s->nb_library_paths);
1282}1283}
1284#endif
1283 1285
1284ST_FUNC int tcc_add_crt(TCCState *s, const char *filename)1286ST_FUNC int tcc_add_crt(TCCState *s, const char *filename)
1285{1287{
tcc.h+4−0
@@ -1118,7 +1118,11 @@ ST_FUNC void tcc_close(void); · 1117 unmodified lines
1118 1118
1119ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags, int filetype);1119ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags, int filetype);
1120ST_FUNC int tcc_add_crt(TCCState *s, const char *filename);1120ST_FUNC int tcc_add_crt(TCCState *s, const char *filename);
1121
1122#ifndef TCC_TARGET_PE
1121ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);1123ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);
1124#endif
1125
1122ST_FUNC void tcc_add_pragma_libs(TCCState *s1);1126ST_FUNC void tcc_add_pragma_libs(TCCState *s1);
1123PUB_FUNC int tcc_add_library_err(TCCState *s, const char *f);1127PUB_FUNC int tcc_add_library_err(TCCState *s, const char *f);
1124 1128