some winlibs fixes

This commit is contained in:
ars_goldendict 2009-04-30 22:46:18 +00:00
parent c8e4e76254
commit 5778b446ab
2 changed files with 10 additions and 4 deletions

View file

@ -6,3 +6,9 @@
#if !defined(strncasecmp) #if !defined(strncasecmp)
# define strncasecmp _strnicmp # define strncasecmp _strnicmp
#endif #endif
#ifndef _SSIZE_T
#define _SSIZE_T
#define ssize_t long
#endif

View file

@ -51,6 +51,10 @@ extern "C" {
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#ifdef _MSC_VER
#include <stub_msvc.h>
#endif
/* flags for zip_open */ /* flags for zip_open */
#define ZIP_CREATE 1 #define ZIP_CREATE 1
@ -154,10 +158,6 @@ enum zip_source_cmd {
ZIP_SOURCE_FREE /* cleanup and free resources */ 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, typedef ssize_t (*zip_source_callback)(void *state, void *data,
size_t len, enum zip_source_cmd cmd); size_t len, enum zip_source_cmd cmd);