mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
correct cpp extern only being on win32
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
188d896c81
commit
a11fe94f2c
1 changed files with 5 additions and 6 deletions
|
@ -22,6 +22,10 @@
|
|||
#ifndef __LIBWEBSOCKET_H__
|
||||
#define __LIBWEBSOCKET_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
|
@ -31,10 +35,6 @@
|
|||
#include <ws2tcpip.h>
|
||||
#include "websock-w32.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "gettimeofday.h"
|
||||
|
||||
#else
|
||||
|
@ -683,9 +683,8 @@ lws_b64_decode_string(const char *in, char *out, int out_size);
|
|||
|
||||
extern struct libwebsocket_extension libwebsocket_internal_extensions[];
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue