Ticket #29 (new defect)
C2HS chokes on Mac "^" block notation
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | 0.16.0 |
| Keywords: | Cc: |
Description
on Snow Leopard, /usr/include/stdlib.h contains Apple's new blocks notation, which c2hs seems unhappy with, despite it being protected by an #ifdef.
lines 271 onwards:
#ifdef BLOCKS int atexit_b(void ()(void)); void *bsearch_b(const void *, const void *, size_t,
size_t, int ()(const void *, const void *));
#endif /* BLOCKS */
➜ hubris-0.0.2 ./Setup build Preprocessing library hubris-0.0.2... c2hs: C header contains errors:
/usr/include/stdlib.h:272: (column 20) [ERROR] >>> error
Syntax error ! The symbol `' does not fit here.
Change History
Note: See
TracTickets for help on using
tickets.
