summaryrefslogtreecommitdiff
path: root/src/windows.cpp
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-17 02:02:20 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-17 02:02:20 +0000
commit3fe5aa037ac907a2e557cc5019588344eaf8dc9f (patch)
tree3189c4f543c52c97f9e186606fe9aa838849013f /src/windows.cpp
parent7af9e42d2150e17139342cb56c3617dc9b75859a (diff)
Fix numerous errors in Win32 building under Visual Studio due to the many changes to trunk. Trunk now builds under Windows like it should.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2106 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/windows.cpp')
-rw-r--r--src/windows.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/windows.cpp b/src/windows.cpp
index 29a2131d1..988256838 100644
--- a/src/windows.cpp
+++ b/src/windows.cpp
@@ -10,18 +10,18 @@
*
* $Id$
*
- */
+ */
#ifdef WIN32
+#include <windows.h>
+
const char *dlerror()
{
static char errbuf[513];
DWORD err = GetLastError();
- if (err == 0)
+ if (!err)
return NULL;
- FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, errbuf, 512,
- NULL);
+ FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, 0, errbuf, 512, NULL);
return errbuf;
}
#endif