summaryrefslogtreecommitdiffstats
path: root/PC/WinMain.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2007-05-26 19:31:39 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2007-05-26 19:31:39 (GMT)
commit629ec26f637844f912d8f5aa6e21bae5d59f559f (patch)
tree8debb7c1a201e6018c948acd7fd177a992c24634 /PC/WinMain.c
parentba526438f8ce4bde87f7b38f966688a5193a7c5e (diff)
downloadcpython-629ec26f637844f912d8f5aa6e21bae5d59f559f.zip
cpython-629ec26f637844f912d8f5aa6e21bae5d59f559f.tar.gz
cpython-629ec26f637844f912d8f5aa6e21bae5d59f559f.tar.bz2
Include <windows.h> after python.h, so that WINNT is properly set before windows.h is included. Fixes warnings in PC builds.
Diffstat (limited to 'PC/WinMain.c')
-rw-r--r--PC/WinMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/WinMain.c b/PC/WinMain.c
index 00dc18d..2cdd0cb 100644
--- a/PC/WinMain.c
+++ b/PC/WinMain.c
@@ -1,10 +1,10 @@
/* Minimal main program -- everything is loaded from the library. */
+#include "Python.h"
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#include "Python.h"
-
int WINAPI WinMain(
HINSTANCE hInstance, /* handle to current instance */
HINSTANCE hPrevInstance, /* handle to previous instance */