Fossil SCM
make compilation depend on _WIN32 being defined by including allways config.h
Commit
c0a530f482bf0b4bda6712d3dc2bd0647e129ed3
Parent
30b8a41dc759c8b…
1 file changed
+2
-2
+2
-2
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -16,13 +16,13 @@ | ||
| 16 | 16 | ******************************************************************************* |
| 17 | 17 | ** |
| 18 | 18 | ** This file implements a very simple (and low-performance) HTTP server |
| 19 | 19 | ** for windows. |
| 20 | 20 | */ |
| 21 | -#if defined( __MINGW32__) || defined(__DMC__) || defined(_MSC_VER) | |
| 22 | -/* This code is for win32 only */ | |
| 23 | 21 | #include "config.h" |
| 22 | +#ifdef _WIN32 | |
| 23 | +/* This code is for win32 only */ | |
| 24 | 24 | #include "winhttp.h" |
| 25 | 25 | #include <windows.h> |
| 26 | 26 | |
| 27 | 27 | /* |
| 28 | 28 | ** The HttpRequest structure holds information about each incoming |
| 29 | 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 | #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 |