[Hackage] #621: Generated CPP macros need parens
#621: Generated CPP macros need parens ----------------------------------+----------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: very easy (<1 hour) | Ghcversion: Platform: | ----------------------------------+----------------------------------------- CPP directives such as: {{{ #if !MIN_VERSION_foo(1,2,3) }}} don't work, as the expanded version of MIN_VERSION_foo(x,y,z) does not include enclosing parenthesis. I can always do: {{{ #if !(MIN_VERSION_foo(1,2,3)) }}} but that's irritating. -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/621> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
#621: Generated CPP macros need parens ----------------------------+----------------------------------------------- Reporter: AntoineLatter | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: fixed Keywords: | Difficulty: very easy (<1 hour) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Thanks. Applied. {{{ Tue Dec 29 02:33:58 GMT 2009 Antoine Latter <aslatter@gmail.com> * Add parenthesis to macros in cabal_macros.h Now this like "#if !MIN_VERSION_base(4,2,0)" will work }}} -- Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/621#comment:1> Hackage <http://haskell.org/cabal/> Hackage: Cabal and related projects
participants (1)
-
Hackage