Include only necessary Magick++-headers.

This commit is contained in:
tastytea 2018-12-01 11:30:05 +01:00
parent 785cd7a35f
commit 3bdcd7b120
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
4 changed files with 6 additions and 2 deletions

View File

@ -121,7 +121,7 @@ void http::send_redirect(const Request &request)
const char *env = std::getenv("HTTPS"); const char *env = std::getenv("HTTPS");
string baseurl; string baseurl;
if (env != nullptr && env[1] == 'n') if (env != nullptr && env[1] == 'n')
{ { // "on"
baseurl = "https://seccdn.libravatar.org"; baseurl = "https://seccdn.libravatar.org";
} }
else else

View File

@ -18,6 +18,9 @@
#include <sstream> #include <sstream>
#include <array> #include <array>
#include <algorithm> #include <algorithm>
#include <Magick++/Geometry.h>
#include <Magick++/Color.h>
#include <Magick++/Exception.h>
#include "libravatarserv.hpp" #include "libravatarserv.hpp"
using std::cout; using std::cout;

View File

@ -15,6 +15,7 @@
*/ */
#include <iostream> #include <iostream>
#include <Magick++/Geometry.h>
#include "version.hpp" #include "version.hpp"
#include "libravatarserv.hpp" #include "libravatarserv.hpp"

View File

@ -24,7 +24,7 @@
#endif #endif
#include <string> #include <string>
#include <map> #include <map>
#include <Magick++.h> #include <Magick++/Image.h>
#if __cplusplus >= 201703L #if __cplusplus >= 201703L
namespace fs = std::filesystem; namespace fs = std::filesystem;