mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
some winlibs fixes
This commit is contained in:
parent
c8e4e76254
commit
5778b446ab
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue