mirror of
https://github.com/anope/anope.git
synced 2026-07-01 07:56:39 +02:00
Fixed Windows build
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@
|
||||
#include <set>
|
||||
#include "hashcomp.h"
|
||||
|
||||
struct Message;
|
||||
class Message;
|
||||
|
||||
namespace Anope
|
||||
{
|
||||
@@ -291,7 +291,7 @@ namespace Anope
|
||||
/** The current system time, which is pretty close to being accurate.
|
||||
* Use this unless you need very specific time checks
|
||||
*/
|
||||
extern time_t CurTime;
|
||||
extern CoreExport time_t CurTime;
|
||||
|
||||
extern CoreExport string Version();
|
||||
|
||||
|
||||
+3
-4
@@ -387,12 +387,11 @@ struct MultiConfig
|
||||
MultiNotify finish_function;
|
||||
};
|
||||
|
||||
/** This class holds the bulk of the runtime configuration for the ircd.
|
||||
/** This class holds the bulk of the runtime configuration for Anope.
|
||||
* It allows for reading new config values, accessing configuration files,
|
||||
* and storage of the configuration data needed to run the ircd, such as
|
||||
* the servername, connect classes, /ADMIN data, MOTDs and filenames etc.
|
||||
* and storage of the configuration data needed to run Anope.
|
||||
*/
|
||||
class ServerConfig
|
||||
class CoreExport ServerConfig
|
||||
{
|
||||
private:
|
||||
/** Check that there is only one of each configuration item
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ enum DNSError
|
||||
DNS_ERROR_NOT_IMPLEMENTED,
|
||||
DNS_ERROR_REFUSED,
|
||||
DNS_ERROR_NO_RECORDS,
|
||||
DNS_ERROR_INVALID_TYPE
|
||||
DNS_ERROR_INVALIDTYPE
|
||||
};
|
||||
|
||||
class DNSRequestTimeout; // Forward declarations
|
||||
@@ -53,7 +53,7 @@ class Module;
|
||||
|
||||
/** The request
|
||||
*/
|
||||
class DNSRequest
|
||||
class CoreExport DNSRequest
|
||||
{
|
||||
/* Timeout timer for this request */
|
||||
DNSRequestTimeout *timeout;
|
||||
|
||||
+4
-5
@@ -27,7 +27,7 @@
|
||||
# define dlsym(file, symbol) (HMODULE)GetProcAddress(file, symbol)
|
||||
# define dlclose(file) FreeLibrary(file) ? 0 : 1
|
||||
# define ano_modclearerr() SetLastError(0)
|
||||
# define ano_moderr() LastError().c_str()
|
||||
# define ano_moderr() Anope::LastError().c_str()
|
||||
#else
|
||||
typedef void * ano_module_t;
|
||||
|
||||
@@ -123,11 +123,9 @@ else \
|
||||
# ifndef RTLD_LOCAL
|
||||
# define RTLD_LOCAL 0
|
||||
# endif
|
||||
#else
|
||||
const char *ano_moderr();
|
||||
#endif
|
||||
|
||||
struct Message;
|
||||
class Message;
|
||||
|
||||
extern CoreExport Module *FindModule(const Anope::string &name);
|
||||
int protocol_module_init();
|
||||
@@ -1265,8 +1263,9 @@ class service_reference : public dynamic_reference<T>
|
||||
}
|
||||
};
|
||||
|
||||
struct Message
|
||||
class CoreExport Message
|
||||
{
|
||||
public:
|
||||
Anope::string name;
|
||||
bool (*func)(const Anope::string &source, const std::vector<Anope::string> ¶ms);
|
||||
|
||||
|
||||
@@ -78,7 +78,6 @@
|
||||
# define inet_pton inet_pton_
|
||||
# define inet_ntop inet_ntop_
|
||||
# define MARK_DEPRECATED
|
||||
# define EINPROGRESS WSAEWOULDBLOCK
|
||||
|
||||
extern CoreExport int inet_pton(int af, const char *src, void *dst);
|
||||
extern CoreExport const char *inet_ntop(int af, const void *src, char *dst, size_t size);
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ typedef unordered_map_namespace::unordered_map<Anope::string, User *, Anope::has
|
||||
extern CoreExport user_map UserListByNick;
|
||||
extern CoreExport user_uid_map UserListByUID;
|
||||
|
||||
class ChannelStatus : public Flags<ChannelModeName, CMODE_END * 2>
|
||||
class CoreExport ChannelStatus : public Flags<ChannelModeName, CMODE_END * 2>
|
||||
{
|
||||
public:
|
||||
Anope::string BuildCharPrefixList() const;
|
||||
|
||||
Reference in New Issue
Block a user