From 062c7927d00c95490599735c9bd5ab54fb6a296b Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Mon, 18 May 2015 16:35:50 +0100 Subject: [PATCH] Ensure libvips version requirement Should improve debugging, e.g. #222 --- src/common.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common.cc b/src/common.cc index 6bc403a2d..4ad2f77c8 100755 --- a/src/common.cc +++ b/src/common.cc @@ -6,6 +6,10 @@ // Verify platform and compiler compatibility +#if (VIPS_MAJOR_VERSION < 7 || (VIPS_MAJOR_VERSION == 7 && VIPS_MINOR_VERSION < 40)) +#error libvips version 7.40.0+ required - see https://github.com/lovell/sharp#prerequisites +#endif + #ifdef _WIN64 #error Windows 64-bit is currently unsupported - see https://github.com/lovell/sharp#windows #endif