From 945c45ad50ed31e3acb96fdaafb21640c4669f12 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Fri, 21 Apr 2017 09:16:48 -0400 Subject: Prefer #if defined to #ifdef Our new CPP linter enforces this. --- libraries/base/System/Timeout.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/base/System/Timeout.hs') diff --git a/libraries/base/System/Timeout.hs b/libraries/base/System/Timeout.hs index d4ef0932b5..d34082e64f 100644 --- a/libraries/base/System/Timeout.hs +++ b/libraries/base/System/Timeout.hs @@ -18,7 +18,7 @@ module System.Timeout ( timeout ) where -#ifndef mingw32_HOST_OS +#if !defined(mingw32_HOST_OS) import Control.Monad import GHC.Event (getSystemTimerManager, registerTimeout, unregisterTimeout) @@ -80,7 +80,7 @@ timeout :: Int -> IO a -> IO (Maybe a) timeout n f | n < 0 = fmap Just f | n == 0 = return Nothing -#ifndef mingw32_HOST_OS +#if !defined(mingw32_HOST_OS) | rtsSupportsBoundThreads = do -- In the threaded RTS, we use the Timer Manager to delay the -- (fairly expensive) 'forkIO' call until the timeout has expired. -- cgit v1.2.1