commit | 865240ed6f0c41a2f9dc64dc89ceefc355082a31 | [log] [tgz] |
---|---|---|
author | Thomas Klausner <tk@giga.or.at> | Tue Sep 17 12:45:07 2019 +0200 |
committer | Thomas Klausner <tk@giga.or.at> | Tue Sep 17 12:45:07 2019 +0200 |
tree | 8b0c45b931ba75019efc4f18bbe31b05fac61cb9 | |
parent | d10098634b790a2b696c73fefa3f391c5f8d28ac [diff] |
Comment out call to zip_mkstempm on Windows, should not ever be needed.
diff --git a/lib/zip_source_filep.c b/lib/zip_source_filep.c index 4ad3fc2..30e5991 100644 --- a/lib/zip_source_filep.c +++ b/lib/zip_source_filep.c
@@ -379,11 +379,15 @@ return 0; case ZIP_SOURCE_BEGIN_WRITE: +#ifdef _WIN32 + return -1; +#else if (ctx->fname == NULL) { zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0); return -1; } return create_temp_output(ctx); +#endif #ifdef CAN_CLONE case ZIP_SOURCE_BEGIN_WRITE_CLONING: