summaryrefslogtreecommitdiff
path: root/src/common/winapi.h
diff options
context:
space:
mode:
authorblacksirius <blacksirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-03 17:55:38 +0000
committerblacksirius <blacksirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-03 17:55:38 +0000
commitc2fa09af6a98d13d3eedf777f93b00ee666dc324 (patch)
tree142734eae99fac3b08589872c87bff3d1882d355 /src/common/winapi.h
parent2fae6b0ebfb77c78b76dd48e29ece269127c87ae (diff)
downloadhercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.tar.gz
hercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.tar.bz2
hercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.tar.xz
hercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.zip
cleaned up windows header usage (added one central file to use windows / winapi specific stuff, to be able to set the appropriate flags before including it correctly)
Note: this may screw up mingw or cygwin building, ill fix it later... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16219 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/winapi.h')
-rw-r--r--src/common/winapi.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/common/winapi.h b/src/common/winapi.h
new file mode 100644
index 000000000..7ce555049
--- /dev/null
+++ b/src/common/winapi.h
@@ -0,0 +1,36 @@
+#pragma once
+
+
+#define STRICT
+#define NTDDI_VERSION NTDDI_WIN2K
+#define _WIN32_WINNT 0x0500
+#define WINVER 0x0500
+#define _WIN32_IE 0x0600
+#define WIN32_LEAN_AND_MEAN
+#define NOCOMM
+#define NOKANJI
+#define NOHELP
+#define NOMCX
+#define NOCLIPBOARD
+#define NOCOLOR
+#define NONLS
+#define NOMEMMGR
+#define NOMETAFILE
+#define NOOPENFILE
+#define NOSERVICE
+#define NOSOUND
+#define NOTEXTMETRIC
+
+
+#define _CRT_SECURE_NO_WARNINGS
+#define _CRT_NONSTDC_NO_WARNINGS
+
+#include <io.h>
+#include <Windows.h>
+#include <WinSock2.h>
+#include <In6addr.h>
+#include <Ws2tcpip.h>
+#include <Mswsock.h>
+#include <MMSystem.h>
+
+