From 5778b446abc8e2f60370ad6c91e06c24ec53c4f3 Mon Sep 17 00:00:00 2001 From: ars_goldendict Date: Thu, 30 Apr 2009 22:46:18 +0000 Subject: [PATCH] some winlibs fixes --- src/winlibs/include/stub_msvc.h | 6 ++++++ src/winlibs/include/zip.h | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/winlibs/include/stub_msvc.h b/src/winlibs/include/stub_msvc.h index 27780f33..bc2b6f4a 100644 --- a/src/winlibs/include/stub_msvc.h +++ b/src/winlibs/include/stub_msvc.h @@ -6,3 +6,9 @@ #if !defined(strncasecmp) # define strncasecmp _strnicmp #endif + +#ifndef _SSIZE_T +#define _SSIZE_T +#define ssize_t long +#endif + diff --git a/src/winlibs/include/zip.h b/src/winlibs/include/zip.h index d4378b5a..f18ec9a8 100644 --- a/src/winlibs/include/zip.h +++ b/src/winlibs/include/zip.h @@ -51,6 +51,10 @@ extern "C" { #include #include +#ifdef _MSC_VER +#include +#endif + /* flags for zip_open */ #define ZIP_CREATE 1 @@ -154,10 +158,6 @@ enum zip_source_cmd { ZIP_SOURCE_FREE /* cleanup and free resources */ }; -#ifndef ssize_t -#define ssize_t int -#endif - typedef ssize_t (*zip_source_callback)(void *state, void *data, size_t len, enum zip_source_cmd cmd);