scala-native-bindgen icon indicating copy to clipboard operation
scala-native-bindgen copied to clipboard

Support POSIX, GNU and OS specific flavours of standard headers

Open jonas opened this issue 7 years ago • 1 comments

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 avatar May 24 '18 18:05 jonas

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.

ekrich avatar Jul 02 '18 22:07 ekrich