
#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__ -U__GNUC_PATCHLEVEL__}}} . -- 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