diff options
author | Adam <Adam@anope.org> | 2011-08-10 01:32:07 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-10 01:32:07 -0400 |
commit | ded98ed3ded63aa37b7226cd7228b375df8b33e3 (patch) | |
tree | 83e728dddd3b886d198908979a72916727d71ad1 /src/win32/anope_windows.h | |
parent | 13bcc4ef14c0c61e8ed578ac9346291ae731b8df (diff) |
Fixed windows build
Diffstat (limited to 'src/win32/anope_windows.h')
-rw-r--r-- | src/win32/anope_windows.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/win32/anope_windows.h b/src/win32/anope_windows.h index 6d16e5554..4fe1b11e5 100644 --- a/src/win32/anope_windows.h +++ b/src/win32/anope_windows.h @@ -41,6 +41,15 @@ #define snprintf _snprintf
/* VS2008 hates having this define before its own */
#define vsnprintf _vsnprintf
+#define stat _stat
+#define S_ISREG(x) ((x) & _S_IFREG)
+
+#include "sigaction/sigaction.h"
+
+namespace Anope
+{
+ class string;
+}
extern CoreExport void OnStartup();
extern CoreExport void OnShutdown();
@@ -50,6 +59,7 @@ extern CoreExport const char *inet_ntop(int af, const void *src, char *dst, size extern CoreExport int gettimeofday(timeval *tv, void *);
extern CoreExport Anope::string GetWindowsVersion();
extern CoreExport bool SupportedWindowsVersion();
+extern int mkstemp(char *input);
#endif // _WIN32
#endif // WINDOWS_H
|