From c792a047b1fff5a2ec3cae7db9fe288d20895375 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 5fd3274d..8d5565e3 100755 --- a/src/common.cc +++ b/src/common.cc @@ -7,6 +7,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