Fossil SCM

make compilation depend on _WIN32 being defined by including allways config.h

renez 2010-08-31 15:51 windowscompilers
Commit c0a530f482bf0b4bda6712d3dc2bd0647e129ed3
1 file changed +2 -2
+2 -2
--- src/winhttp.c
+++ src/winhttp.c
@@ -16,13 +16,13 @@
1616
*******************************************************************************
1717
**
1818
** This file implements a very simple (and low-performance) HTTP server
1919
** for windows.
2020
*/
21
-#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER)
22
-/* This code is for win32 only */
2321
#include "config.h"
22
+#ifdef _WIN32
23
+/* This code is for win32 only */
2424
#include "winhttp.h"
2525
#include <windows.h>
2626
2727
/*
2828
** The HttpRequest structure holds information about each incoming
2929
--- src/winhttp.c
+++ src/winhttp.c
@@ -16,13 +16,13 @@
16 *******************************************************************************
17 **
18 ** This file implements a very simple (and low-performance) HTTP server
19 ** for windows.
20 */
21 #if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER)
22 /* This code is for win32 only */
23 #include "config.h"
 
 
24 #include "winhttp.h"
25 #include <windows.h>
26
27 /*
28 ** The HttpRequest structure holds information about each incoming
29
--- src/winhttp.c
+++ src/winhttp.c
@@ -16,13 +16,13 @@
16 *******************************************************************************
17 **
18 ** This file implements a very simple (and low-performance) HTTP server
19 ** for windows.
20 */
 
 
21 #include "config.h"
22 #ifdef _WIN32
23 /* This code is for win32 only */
24 #include "winhttp.h"
25 #include <windows.h>
26
27 /*
28 ** The HttpRequest structure holds information about each incoming
29

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button