]> granicus.if.org Git - python/commitdiff
Include <windows.h> after python.h, so that WINNT is properly set before windows...
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Sat, 26 May 2007 19:31:39 +0000 (19:31 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Sat, 26 May 2007 19:31:39 +0000 (19:31 +0000)
PC/WinMain.c
PC/_winreg.c
PC/dl_nt.c
PC/winsound.c
Python/dynload_win.c

index 00dc18d484b9962263a1a750304f7d47f716876f..2cdd0cb695d4f46add384e3f13042e4c929808b4 100644 (file)
@@ -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 */
index 782761b654b5abf870c3129f31d637fed60703da..920e1d1b5571e1f82022fdcf28cd03867b806526 100644 (file)
 
 */
 
-#include "windows.h"
 #include "Python.h"
 #include "structmember.h"
 #include "malloc.h" /* for alloca */
+#include "windows.h"
 
 static BOOL PyHKEY_AsHKEY(PyObject *ob, HKEY *pRes, BOOL bNoneOK);
 static PyObject *PyHKEY_FromHKEY(HKEY h);
index 2608f7e7aaf101454b5d70c70bec478d8eeb6a7c..a87b523818a3d2a27917fe37c0ca073d350fe2ed 100644 (file)
@@ -7,11 +7,9 @@ be called, removing that burden (and possible source of frustration if
 forgotten) from the programmer.
 
 */
-#include "windows.h"
 
-/* NT and Python share these */
-#include "pyconfig.h"
 #include "Python.h"
+#include "windows.h"
 
 char dllVersionBuffer[16] = ""; // a private buffer
 
index 4e942304055b99b1881320b29430829880370ae2..9ff3b7e881868a722580c35453006aa576b20ae9 100644 (file)
@@ -35,9 +35,9 @@
    winsound.PlaySound(None, 0)
 */
 
+#include <Python.h>
 #include <windows.h>
 #include <mmsystem.h>
-#include <Python.h>
 #ifdef HAVE_CONIO_H
 #include <conio.h>     /* port functions on Win9x */
 #endif
index 1c3b3ab0c8daa29b438a2698353cf6bf24c9fbef..fc641b9ff9e2d034186cc5097ee74f7c4f60aecc 100644 (file)
@@ -1,7 +1,6 @@
 
 /* Support for dynamic loading of extension modules */
 
-#include <windows.h>
 #ifdef HAVE_DIRECT_H
 #include <direct.h>
 #endif
@@ -9,6 +8,7 @@
 
 #include "Python.h"
 #include "importdl.h"
+#include <windows.h>
 
 const struct filedescr _PyImport_DynLoadFiletab[] = {
 #ifdef _DEBUG