win32 more build fixes
After alexgille https://github.com/warmcat/libwebsockets/issues/526 Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
7d259d885a
commit
bc3f77e977
4 changed files with 12 additions and 8 deletions
|
@ -1177,7 +1177,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
|||
set(PLUGIN_SRCS ${MAIN_SRC})
|
||||
|
||||
if (WIN32)
|
||||
list(APPEND PLUGIN_SRCSset_property
|
||||
list(APPEND PLUGIN_SRCS
|
||||
${WIN32_HELPERS_PATH}/getopt.c
|
||||
${WIN32_HELPERS_PATH}/getopt_long.c
|
||||
${WIN32_HELPERS_PATH}/gettimeofday.c
|
||||
|
|
|
@ -1367,7 +1367,8 @@ struct lws_plugin {
|
|||
* If we add more extensions, publish the callback here ------v
|
||||
*/
|
||||
|
||||
extern int lws_extension_callback_pm_deflate(
|
||||
LWS_EXTERN
|
||||
int lws_extension_callback_pm_deflate(
|
||||
struct lws_context *context, const struct lws_extension *ext,
|
||||
struct lws *wsi, enum lws_extension_callback_reasons reason,
|
||||
void *user, void *in, size_t len);
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
#include <in6addr.h>
|
||||
#endif
|
||||
#include <mstcpip.h>
|
||||
#include <io.h>
|
||||
|
||||
#ifndef __func__
|
||||
#define __func__ __FUNCTION__
|
||||
|
|
14
lwsws/lejp.h
14
lwsws/lejp.h
|
@ -1,3 +1,5 @@
|
|||
#include "../lib/libwebsockets.h"
|
||||
|
||||
|
||||
struct lejp_ctx;
|
||||
|
||||
|
@ -140,7 +142,7 @@ enum lejp_callbacks {
|
|||
*
|
||||
* LEJPCB_OBJECT_END: An object ended
|
||||
*/
|
||||
extern char _lejp_callback(struct lejp_ctx *ctx, char reason);
|
||||
LWS_EXTERN char _lejp_callback(struct lejp_ctx *ctx, char reason);
|
||||
|
||||
typedef char (*lejp_callback)(struct lejp_ctx *ctx, char reason);
|
||||
|
||||
|
@ -213,20 +215,20 @@ struct lejp_ctx {
|
|||
unsigned char wildcount;
|
||||
};
|
||||
|
||||
extern void
|
||||
LWS_EXTERN void
|
||||
lejp_construct(struct lejp_ctx *ctx,
|
||||
char (*callback)(struct lejp_ctx *ctx, char reason), void *user,
|
||||
const char * const *paths, unsigned char paths_count);
|
||||
|
||||
extern void
|
||||
LWS_EXTERN void
|
||||
lejp_destruct(struct lejp_ctx *ctx);
|
||||
|
||||
extern int
|
||||
LWS_EXTERN int
|
||||
lejp_parse(struct lejp_ctx *ctx, const unsigned char *json, int len);
|
||||
|
||||
extern void
|
||||
LWS_EXTERN void
|
||||
lejp_change_callback(struct lejp_ctx *ctx,
|
||||
char (*callback)(struct lejp_ctx *ctx, char reason));
|
||||
|
||||
extern int
|
||||
LWS_EXTERN int
|
||||
lejp_get_wildcard(struct lejp_ctx *ctx, int wildcard, char *dest, int len);
|
||||
|
|
Loading…
Add table
Reference in a new issue