diff options
author | Jeffrey Armstrong <jeff@approximatrix.com> | 2021-11-22 08:47:32 -0500 |
---|---|---|
committer | Jeffrey Armstrong <jeff@approximatrix.com> | 2021-11-22 08:47:32 -0500 |
commit | 5f33f9cdde2900cb74e6281f8d848bc874c12d95 (patch) | |
tree | 6dfc95eb36cd6e57cb0abb11676180816a962e4c | |
parent | b5ec0f54fe391f3f948ba23b1e534901f45c64a2 (diff) | |
download | libzip-wrapper-5f33f9cdde2900cb74e6281f8d848bc874c12d95.tar.gz libzip-wrapper-5f33f9cdde2900cb74e6281f8d848bc874c12d95.zip |
Files for writing are now opened as binaries on Windows
-rw-r--r-- | libzip-wrapper.prj | 16 | ||||
-rw-r--r-- | zwrapper.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/libzip-wrapper.prj b/libzip-wrapper.prj index 68d31be..18d55a6 100644 --- a/libzip-wrapper.prj +++ b/libzip-wrapper.prj @@ -1,19 +1,19 @@ { "Root":{ "Folders":[], - "Name":"+libzip-wrapper (funzip)", + "Name":"+libzip-wrapper (funzip.exe)", "Files":[{ - "filename":"funzip.f90", + "filename":".\\funzip.f90", "enabled":"1" },{ - "filename":"unzip_wrap.f90", + "filename":".\\unzip_wrap.f90", "enabled":"1" },{ - "filename":"zwrapper.c", + "filename":".\\zwrapper.c", "enabled":"1" }] }, - "Name":"libzip-wrapper (funzip)", + "Name":"libzip-wrapper (funzip.exe)", "Options":{ "Compiler Options":{ "Fortran Flags":"", @@ -25,12 +25,12 @@ "Revision":2, "Windows GUI":0, "File Options":{ - "Library Directories":["Default Library Directory"], + "Library Directories":["Default Library Directory","../../libzip-1.8.0/install/lib"], "Build Directory":"build", "Module Directory":"modules", - "Include Directories":["Default Include Directory"] + "Include Directories":["Default Include Directory","../../libzip-1.8.0/install/include"] }, - "Target":"funzip", + "Target":"funzip.exe", "Fortran Options":{ "Use C Preprocessor":"false", "Runtime Diagnostics":"false", @@ -95,7 +95,7 @@ FILE *fp_index; } else { zf = zip_fopen_index(za, i, 0); - fp = fopen(fullfile, "w"); + fp = fopen(fullfile, "wb"); if(zf != NULL && fp != NULL) { total_read = 0; |