mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Cleanup include statements
Remove useless includes and add some preprocessor conditions for platform specific headers.
This commit is contained in:
parent
8a59033565
commit
e5720a347e
7 changed files with 12 additions and 16 deletions
|
@ -23,7 +23,6 @@
|
|||
|
||||
#ifdef WIN32
|
||||
#include <tchar.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
#ifdef LWS_BUILTIN_GETIFADDRS
|
||||
#include <getifaddrs.h>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#include <tchar.h>
|
||||
#include <io.h>
|
||||
#include <mstcpip.h>
|
||||
#else
|
||||
#ifdef LWS_BUILTIN_GETIFADDRS
|
||||
|
@ -37,7 +36,9 @@
|
|||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifdef LWS_OPENSSL_SUPPORT
|
||||
int openssl_websocket_private_data_index;
|
||||
|
|
|
@ -21,10 +21,6 @@
|
|||
|
||||
#include "private-libwebsockets.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
static int
|
||||
libwebsocket_0405_frame_mask_generate(struct libwebsocket *wsi)
|
||||
{
|
||||
|
|
|
@ -21,11 +21,6 @@
|
|||
|
||||
#include "private-libwebsockets.h"
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
|
||||
unsigned char lextable[] = {
|
||||
#include "lextable.h"
|
||||
};
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
|
||||
#if _MSC_VER > 1000 || defined(_WIN32)
|
||||
#else
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
@ -39,9 +42,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <limits.h>
|
||||
#ifdef __MINGW64__
|
||||
#else
|
||||
|
@ -53,7 +53,9 @@
|
|||
#endif
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#define LWS_NO_DAEMONIZE
|
||||
|
@ -79,7 +81,6 @@
|
|||
#endif
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <ws2ipdef.h>
|
||||
#include <windows.h>
|
||||
#define LWS_INVALID_FILE INVALID_HANDLE_VALUE
|
||||
#else
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#include <tchar.h>
|
||||
#include <io.h>
|
||||
#else
|
||||
#ifdef LWS_BUILTIN_GETIFADDRS
|
||||
#include <getifaddrs.h>
|
||||
|
|
|
@ -32,7 +32,12 @@
|
|||
* implemented by Jun-ichiro itojun Itoh <itojun@itojun.org>
|
||||
*/
|
||||
|
||||
#include "private-libwebsockets.h"
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
|
||||
#ifndef BIG_ENDIAN
|
||||
|
|
Loading…
Add table
Reference in a new issue