Skip to content

Support POSIX, GNU and OS specific flavours of standard headers #1

Open
@jonas

Description

@jonas

Often C standard headers allow to specify which specification to conform to via defines. For example _POSIX_C_SOURCE. With the these defines can be passed with -extra-arg:

./scalaBindgen /usr/include/ctype.h -name ctype \
    -extra-arg=-D_POSIX_C_SOURCE \
    -extra-arg=-D_DONT_USE_CTYPE_INLINE_

The goal of this ticket is to think about how could provide a way to target a specific specification across different platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bindgenBinding generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions