summaryrefslogtreecommitdiff
path: root/src/win32/anope_windows.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-02 08:30:54 -0400
committerAdam <Adam@anope.org>2012-09-02 08:30:54 -0400
commit1af64a9bbb150b9daae3944d6aae86864c271103 (patch)
treec24a1ac6793e997f83ac66810b611f88855fcd90 /src/win32/anope_windows.h
parente3d5140dcc936ff411c438b7e3997104cb5f085a (diff)
Fix Windows
Diffstat (limited to 'src/win32/anope_windows.h')
-rw-r--r--src/win32/anope_windows.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/win32/anope_windows.h b/src/win32/anope_windows.h
index e5c4d3b11..635dfb8e8 100644
--- a/src/win32/anope_windows.h
+++ b/src/win32/anope_windows.h
@@ -1,4 +1,4 @@
- /* POSIX emulation layer for Windows.
+/* POSIX emulation layer for Windows.
*
* Copyright (C) 2008-2011 Robin Burchell <w00t@inspircd.org>
* Copyright (C) 2008-2012 Anope Team <info@anope.org>
@@ -9,9 +9,11 @@
* Based on the original code of Services by Andy Church.
*/
- #ifndef WINDOWS_H
- #define WINDOWS_H
- #ifdef _WIN32
+#ifndef WINDOWS_H
+#define WINDOWS_H
+#ifdef _WIN32
+
+#define NOMINMAX
#include <winsock2.h>
#include <ws2tcpip.h>
@@ -40,6 +42,8 @@
/* VS2008 hates having this define before its own */
#define vsnprintf _vsnprintf
+#define anope_close windows_close
+
#define stat _stat
#define S_ISREG(x) ((x) & _S_IFREG)
@@ -48,6 +52,8 @@
#endif
#define EINPROGRESS WSAEWOULDBLOCK
+#include "extensible.h"
+
#include "socket.h"
#include "dir/dir.h"
#include "dl/dl.h"
@@ -71,5 +77,7 @@ extern int unsetenv(const char *name);
extern int mkstemp(char *input);
extern void getcwd(char *buf, size_t sz);
+template struct ExtensibleItemClass<Anope::string>;
+
#endif // _WIN32
#endif // WINDOWS_H