1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-09-03 01:21:16 +03:00

Fixes to enable building using MinGW-w64 or TDM-GCC

This commit is contained in:
Eric Tsau
2015-03-22 00:46:06 +13:00
parent 4d1edfd48d
commit 6d4e019c38
3 changed files with 40 additions and 20 deletions

View File

@@ -45,9 +45,13 @@
#include "civetweb.h"
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 /* Target Windows XP or higher */
#endif
#include <windows.h>
#include <winsvc.h>
#include <shlobj.h>
#include <io.h>
#define getcwd(a,b) _getcwd(a,b)
#if !defined(__MINGW32__)
@@ -1500,9 +1504,6 @@ static LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wParam,
return DefWindowProc(hWnd, msg, wParam, lParam);
}
#include <fcntl.h>
#include <io.h>
static int MakeConsole() {
DWORD err;
int ok = (GetConsoleWindow() != NULL);