]> granicus.if.org Git - apache/commitdiff
Significantly shorten the Win32 build and shrink symbol tables
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 May 2000 14:40:03 +0000 (14:40 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 May 2000 14:40:03 +0000 (14:40 +0000)
  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

os/win32/os.h
os/win32/util_win32.c
server/mpm/winnt/registry.c

index 806b53b3af9b67730dcd7d3bed4ece08c2c05b01..baa0ab85ac9a1865c6e995c92cc1fe28264696bd 100644 (file)
  * 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>
index d30fbea0d51827d6932fc6d60760cad29d1e6b42..fef9de799b1c5213f920ddd7a5cc61bcb9c62436 100644 (file)
  * 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.
  */
index 0442a3f89062e648631b50467768e1da5710588d..02a452c69faf7e98f42918dce9d56569f65354c7 100644 (file)
  * 
  * 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"