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