Skip to content

C2HS chokes on Mac "^" block notation #29

@ian-ross

Description

@ian-ross

Bug imported from C2HS Trac

Trac ticket created: 2010-03-18T07:36:03-0700; last modified: 2010-06-15T10:12:28-0700


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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions