From c365e153d9379e7a1f5dd7a700aeb5eff619e4f3 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Mon, 12 Jun 2017 03:48:50 +0200 Subject: Fix the build --- Setup.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Setup.hs') diff --git a/Setup.hs b/Setup.hs index 94c8493..202bfb5 100644 --- a/Setup.hs +++ b/Setup.hs @@ -1,7 +1,10 @@ -#!/usr/bin/env runhaskell {-# LANGUAGE CPP, RecordWildCards, NamedFieldPuns #-} -#if defined(MIN_VERSION_Cabal) && MIN_VERSION_Cabal(2,1,0) +#ifndef MIN_VERSION_Cabal +#define MIN_VERSION_Cabal(x,y,z) 0 +#endif + +#if MIN_VERSION_Cabal(2,1,0) -- https://github.com/haskell/cabal/pull/4501 is upstream in 2.0, yey import Distribution.Simple -- cgit v1.2.3