for precompiled headers and debugging by eliminating large chunks
of the windows.h declarations, especially the graphical user
interface declarations.
Also eliminates redundant inclusion of winsock and windows headers.
As the GUI sections can be included by adding the windows.h include
prior to any apr headers, these includes now imply something
completely different.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85117
13f79535-47bb-0310-9956-
ffa450edef68
* default. We still want the server to run on Win95/98 so use
* runtime checks before calling NT specific functions to verify we are
* really running on an NT system.
+ *
+ * Delegate windows include to the apr.h header, if USER or GDI declarations
+ * are required (for a window rather than console application), include
+ * windows.h prior to any other Apache header files.
*/
-#define _WIN32_WINNT 0x0400
#include "apr_general.h"
-#include <windows.h>
-#include <winsock2.h>
-#include <mswsock.h>
#include <process.h>
#include <malloc.h>
#include <io.h>
* University of Illinois, Urbana-Champaign.
*/
-#include <windows.h>
+#include "httpd.h"
+#include "http_log.h"
+
#include <sys/stat.h>
#include <stdarg.h>
#include <time.h>
#include <stdlib.h>
-#include "httpd.h"
-#include "http_log.h"
-
/* Returns TRUE if the input string is a string
* of one or more '.' characters.
*/
*
* HKLM\Software\[Vendor]\[Software]\[Version]\ServerRoot
*/
-#include "os.h"
-//#include <windows.h>
-//#include <stdio.h>
+#include "os.h"
#include "httpd.h"
#include "http_log.h"