mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Use C++11 header names instead of their deprecated equivalents.
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
* hadn't seen his code).
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
|
||||
#ifdef __i386__
|
||||
#define BF_SCALE 1
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
#include "webcpanel.h"
|
||||
#include <cerrno>
|
||||
#include <fstream>
|
||||
#include <errno.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
*/
|
||||
|
||||
#include "webcpanel.h"
|
||||
#include <cerrno>
|
||||
#include <fstream>
|
||||
#include <stack>
|
||||
#include <errno.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
+3
-3
@@ -23,10 +23,10 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#include <cerrno>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
Anope::string Anope::ConfigDir = "conf", Anope::DataDir = "data", Anope::ModuleDir = "lib", Anope::LocaleDir = "locale", Anope::LogDir = "logs";
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
#include "uplink.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <limits.h>
|
||||
#include <climits>
|
||||
#else
|
||||
#include <process.h>
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -19,9 +19,9 @@
|
||||
#include "regexpr.h"
|
||||
#include "sockets.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <cerrno>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef _WIN32
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "logger.h"
|
||||
#include "sockets.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
|
||||
void ConnectionSocket::Connect(const Anope::string &TargetHost, int Port)
|
||||
{
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
#include "socketengine.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <cerrno>
|
||||
#include <sys/epoll.h>
|
||||
#include <ulimit.h>
|
||||
#include <errno.h>
|
||||
|
||||
static int EngineHandle;
|
||||
static std::vector<epoll_event> events;
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user