[C2hs] [c2hs] #51: Should not define preprocessor symbols for GCC

c2hs cvs-ghc at haskell.org
Mon Oct 8 04:33:00 CEST 2012

#51: Should not define preprocessor symbols for GCC
 Reporter:  guest   |        Type:  defect 
   Status:  new     |    Priority:  normal 
Milestone:          |   Component:  general
  Version:  0.16.0  |    Keywords:         
 c2hs uses GCC's preprocessor, and as a result it parses C code with GCC's
 default preprocessor symbols defined.  Many projects rely on those
 preprocessor symbols to decide whether to use GCC-specific extensions,
 such as {{{__attribute__}}} declarations.  Since c2hs does not support
 those extensions, it should not define those preprocessor symbols.  Please
 consider invoking the preprocessor with {{{-U__GNUC__ -U__GNUC_MINOR__

Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/51>
c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/>
C->Haskell, An Interface Generator for Haskell

More information about the C2hs mailing list