switch define used, not android specific

This commit is contained in:
Joey Hess 2013-12-18 02:06:15 -04:00
parent 00052f4c84
commit a168b8de12
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
module Utility.Yesod
( module Y
, liftH
#ifndef __ANDROID__
#ifndef __NO_TH__
, widgetFile
, hamletTemplate
#endif
@ -28,7 +28,7 @@ import Yesod as Y
#else
import Yesod as Y hiding (Html)
#endif
#ifndef __ANDROID__
#ifndef __NO_TH__
import Yesod.Default.Util
import Language.Haskell.TH.Syntax (Q, Exp)
#if MIN_VERSION_yesod_default(1,1,0)
@ -37,7 +37,7 @@ import Text.Hamlet hiding (Html)
#endif
#endif
#ifndef __ANDROID__
#ifndef __NO_TH__
widgetFile :: String -> Q Exp
#if ! MIN_VERSION_yesod_default(1,1,0)
widgetFile = widgetFileNoReload

View file

@ -161,7 +161,7 @@ Executable git-annex
if flag(Android)
Build-Depends: data-endian
CPP-Options: -D__ANDROID__ -DANDROID_SPLICES
CPP-Options: -D__ANDROID__ -DANDROID_SPLICES -D__NO_TH__
if flag(AndroidSplice)
CPP-Options: -DANDROID_SPLICES