From 3bdcd7b1209f343382209c28aeded3e5aed2ef12 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 1 Dec 2018 11:30:05 +0100 Subject: [PATCH] Include only necessary Magick++-headers. --- src/http.cpp | 2 +- src/image.cpp | 3 +++ src/libravatarserv.cpp | 1 + src/libravatarserv.hpp | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/http.cpp b/src/http.cpp index a90356c..79eb711 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -121,7 +121,7 @@ void http::send_redirect(const Request &request) const char *env = std::getenv("HTTPS"); string baseurl; if (env != nullptr && env[1] == 'n') - { + { // "on" baseurl = "https://seccdn.libravatar.org"; } else diff --git a/src/image.cpp b/src/image.cpp index 8ff5be1..e878bc7 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -18,6 +18,9 @@ #include #include #include +#include +#include +#include #include "libravatarserv.hpp" using std::cout; diff --git a/src/libravatarserv.cpp b/src/libravatarserv.cpp index 6e26f3f..0221dac 100644 --- a/src/libravatarserv.cpp +++ b/src/libravatarserv.cpp @@ -15,6 +15,7 @@ */ #include +#include #include "version.hpp" #include "libravatarserv.hpp" diff --git a/src/libravatarserv.hpp b/src/libravatarserv.hpp index 97eb227..7f78e6c 100644 --- a/src/libravatarserv.hpp +++ b/src/libravatarserv.hpp @@ -24,7 +24,7 @@ #endif #include #include -#include +#include #if __cplusplus >= 201703L namespace fs = std::filesystem;