summaryrefslogtreecommitdiff
path: root/src/win32/windows.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-17 19:20:07 -0400
committerAdam <Adam@anope.org>2010-09-17 19:20:07 -0400
commit227909e2cf0039737dc52872651837fe5f1702b5 (patch)
treeb8a7072c7d938ea66d9710a48d717b3eb76343de /src/win32/windows.cpp
parentf71fb6e8133da955a58b1cca00013ce20c0b65cc (diff)
Rejig of some of the socket stuff. Fixed marking sockets as nonblocking on Windows. Added in a LastError function to keep having to use strerror/GetLastError everywhere.
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r--src/win32/windows.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp
index 9ea3dad09..5f0c6d5e4 100644
--- a/src/win32/windows.cpp
+++ b/src/win32/windows.cpp
@@ -9,19 +9,9 @@
* Based on the original code of Services by Andy Church.
*/
-#ifdef WIN32
+#ifdef _WIN32
#include "services.h"
-const char *dlerror()
-{
- static char errbuf[513];
- DWORD err = GetLastError();
- if (!err)
- return NULL;
- FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, errbuf, 512, NULL);
- return errbuf;
-}
-
/** This is inet_pton, but it works on Windows
* @param af The protocol type, AF_INET or AF_INET6
* @param src The address