Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jonas opened this issue May 24, 2018 · 1 comment
Open

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

jonas opened this issue May 24, 2018 · 1 comment
Labels
bindgen Binding generator

Comments

@jonas
Copy link
Member

jonas commented May 24, 2018

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.

@jonas jonas changed the title Managing flavours of standard headers Support POSIX, GNU and OS specific flavours of standard headers May 29, 2018
@jonas jonas added the bindgen Binding generator label Jun 25, 2018
@ekrich
Copy link
Member

ekrich commented Jul 2, 2018

I think this a very good idea - typical headers on macOS have lots of definitions not related to Std C or POSIX that seem to create lots of noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindgen Binding generator
Projects
None yet
Development

No branches or pull requests

2 participants