1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 09:57:14 +01:00

Use modern header includes.

This commit is contained in:
Sandu Liviu Catalin 2020-04-27 11:08:32 +03:00
parent df7c5f8266
commit e2e671a13a
3 changed files with 32 additions and 30 deletions

View File

@ -43,10 +43,10 @@
*----------------------------------------------------------------------------*/
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <assert.h>
#include <limits.h>
#include <cstddef>
#include <cstdint>
#include <cassert>
#include <climits>
/*---------------------------------------------------------------------------*/
/* */

View File

@ -47,43 +47,45 @@
#endif
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <cstdlib>
#include <cstdio>
#include <cstdarg>
#include <cerrno>
#if defined(_LINUX) || defined (_DARWIN)
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <netdb.h>
#endif
#ifdef _LINUX
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/if.h>
#include <sys/sendfile.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/if.h>
#include <sys/sendfile.h>
#endif
#ifdef _DARWIN
#include <net/if.h>
#include <net/if.h>
#endif
#if defined(_LINUX) || defined (_DARWIN)
#include <sys/time.h>
#include <sys/uio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <unistd.h>
#include <fcntl.h>
#endif
#ifdef _WIN32
#include <io.h>
#include <winsock2.h>
#include <Ws2tcpip.h>
#define IPTOS_LOWDELAY 0x10
#include <io.h>
#include <winsock2.h>
#include <Ws2tcpip.h>
#define IPTOS_LOWDELAY 0x10
#endif
#include "HostConf.h"
#include "StatTimer.h"

View File

@ -46,7 +46,7 @@
#if _WIN32
#include <Winsock2.h>
#include <time.h>
#include <ctime>
#endif
#ifdef _LINUX