Skip to content

Should not define preprocessor symbols for GCC #51

@ian-ross

Description

@ian-ross

Bug imported from C2HS Trac

Trac ticket created: 2012-10-07T19:32:59-0700


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__ .

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