mirror of https://github.com/kiwix/libkiwix.git
Fix include of `httplib.h` on windows.
On windows, `httplib.h` must be included before `windows.h` We do not include directly `windows.h` in the test but it is included indirectly by other headers. Let's include httplib first.
This commit is contained in:
parent
8eb2d0c2a1
commit
7ec8e33b83
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
|
#include "./httplib.h"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
|
||||||
#include "../include/manager.h"
|
#include "../include/manager.h"
|
||||||
#include "../include/server.h"
|
#include "../include/server.h"
|
||||||
#include "../include/name_mapper.h"
|
#include "../include/name_mapper.h"
|
||||||
|
|
||||||
#include "./httplib.h"
|
|
||||||
|
|
||||||
using TestContextImpl = std::vector<std::pair<std::string, std::string> >;
|
using TestContextImpl = std::vector<std::pair<std::string, std::string> >;
|
||||||
struct TestContext : TestContextImpl {
|
struct TestContext : TestContextImpl {
|
||||||
|
|
Loading…
Reference in New Issue