mirror of
https://github.com/anope/anope.git
synced 2026-07-03 14:03:12 +02:00
Fixed windows build
This commit is contained in:
+2
-2
@@ -51,7 +51,7 @@ enum ConfigDataType
|
||||
* The callback function can then alter the values of the ValueItem
|
||||
* classes to validate the settings.
|
||||
*/
|
||||
class ValueItem
|
||||
class CoreExport ValueItem
|
||||
{
|
||||
private:
|
||||
/** Actual data */
|
||||
@@ -290,7 +290,7 @@ class ConfigurationFile
|
||||
|
||||
/** Holds all of the core configuration items
|
||||
*/
|
||||
class ConfigItems
|
||||
class CoreExport ConfigItems
|
||||
{
|
||||
public:
|
||||
/** Holds a core configuration item and its callbacks
|
||||
|
||||
+14
-8
@@ -43,6 +43,19 @@
|
||||
#include <fcntl.h>
|
||||
#include <typeinfo>
|
||||
|
||||
#if GETTEXT_FOUND
|
||||
# include <libintl.h>
|
||||
# define _(x) anope_gettext(x)
|
||||
# ifdef _WIN32
|
||||
/* Redefine snprintf and undefine vsnprintf because liblintl defines it to its own function */
|
||||
# undef snprintf
|
||||
# define snprintf _snprintf
|
||||
# undef vsnprintf
|
||||
# endif
|
||||
#else
|
||||
# define _(x) x
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <unistd.h>
|
||||
# include <grp.h>
|
||||
@@ -140,13 +153,6 @@ extern "C" void __pfnBkCheck() {}
|
||||
# undef int32
|
||||
#endif
|
||||
|
||||
#if GETTEXT_FOUND
|
||||
# include <libintl.h>
|
||||
# define _(x) anope_gettext(x)
|
||||
#else
|
||||
# define _(x) x
|
||||
#endif
|
||||
|
||||
/** This definition is used as shorthand for the various classes
|
||||
* and functions needed to make a module loadable by the OS.
|
||||
* It defines the class factory and external AnopeInit and AnopeFini functions.
|
||||
@@ -508,7 +514,7 @@ const Anope::string MemoFlagStrings[] = {
|
||||
|
||||
/* Memo info structures. Since both nicknames and channels can have memos,
|
||||
* we encapsulate memo data in a MemoList to make it easier to handle. */
|
||||
class Memo : public Flags<MemoFlag>
|
||||
class CoreExport Memo : public Flags<MemoFlag>
|
||||
{
|
||||
public:
|
||||
Memo();
|
||||
|
||||
@@ -103,9 +103,6 @@ typedef unsigned long uint32;
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# ifdef MSVCPP
|
||||
# define snprintf _snprintf
|
||||
# endif
|
||||
# define popen _popen
|
||||
# define pclose _pclose
|
||||
# define ftruncate _chsize
|
||||
|
||||
Reference in New Issue
Block a user