aboutsummaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs7
1 files changed, 5 insertions, 2 deletions
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