From 0f36b6e37af777c638f9f8c1031890b4e8ab98de Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 24 Mar 2018 18:40:21 +0100 Subject: [PATCH] Fix subtly broken libgd version check --- Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Image.cpp b/Image.cpp index 0ae5dac..c84df37 100644 --- a/Image.cpp +++ b/Image.cpp @@ -103,7 +103,7 @@ void Image::drawCircle(int x, int y, int diameter, const Color &c) void Image::save(const std::string &filename) { -#if (GD_MAJOR_VERSION == 2 && GD_MINOR_VERSION >= 1 && GD_RELEASE_VERSION >= 1) || GD_MAJOR_VERSION > 2 +#if (GD_MAJOR_VERSION == 2 && GD_MINOR_VERSION == 1 && GD_RELEASE_VERSION >= 1) || (GD_MAJOR_VERSION == 2 && GD_MINOR_VERSION > 1) || GD_MAJOR_VERSION > 2 const char *f = filename.c_str(); if (gdSupportsFileType(f, 1) == GD_FALSE) throw std::runtime_error("Image format not supported by gd");