config: Update 2 files
This commit is contained in:
21
tests/cprdemo/src/cpr_stubs.hpp
Normal file
21
tests/cprdemo/src/cpr_stubs.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef CPR_HEADERS_MISSING
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace cpr {
|
||||
struct Url {
|
||||
Url(const std::string& url) : url(url) {}
|
||||
std::string url;
|
||||
};
|
||||
|
||||
struct Response {
|
||||
int status_code;
|
||||
std::string text;
|
||||
};
|
||||
|
||||
Response Get(const Url& url);
|
||||
}
|
||||
|
||||
#endif
|
@ -1,6 +1,11 @@
|
||||
#include <iostream>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#ifdef CPR_HEADERS_MISSING
|
||||
#include "cpr_stubs.hpp"
|
||||
#else
|
||||
#include <cpr/cpr.h>
|
||||
#endif
|
||||
|
||||
#include "version.hpp"
|
||||
#include "assert.hpp"
|
||||
|
Reference in New Issue
Block a user