1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 19:26:40 +02:00

A few more Win32 fixes, Anope 1.9 compiles and runs under Windows now.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1799 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-11-26 22:13:01 +00:00
parent 797edb40ba
commit 2e41f43ace
6 changed files with 23 additions and 29 deletions
+2 -12
View File
@@ -15,18 +15,8 @@
#ifndef EXTERN_H
#define EXTERN_H
#ifndef _WIN32
#define E extern
#define EI extern
#else
#ifndef MODULE_COMPILE
#define E extern __declspec(dllexport)
#define EI extern __declspec(dllimport)
#else
#define E extern __declspec(dllimport)
#define EI extern __declspec(dllexport)
#endif
#endif
#define E extern CoreExport
#define EI extern DllExport
#include "slist.h"
+9 -2
View File
@@ -305,7 +305,7 @@ class CoreExport ModuleException : public CoreException
/** Class with the ability to be extended with key:value pairs.
* Thanks to InspIRCd for this.
*/
class Extensible
class CoreExport Extensible
{
private:
std::map<std::string, void *> Extension_Items;
@@ -360,7 +360,14 @@ class Extensible
* you provide a nonexistent key (case is important) then the function will return false.
* @return Returns true on success.
*/
bool Shrink(const std::string &key);
bool Shrink(const std::string &key)
{
/* map::size_type map::erase( const key_type& key );
* returns the number of elements removed, std::map
* is single-associative so this should only be 0 or 1
*/
return this->Extension_Items.erase(key);
}
/** Get an extension item.
*