silentbicycle / socket99

Wrapper library for the BSD sockets API with a nicer C99 interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

implicit snprintf declaration warning

silentbicycle opened this issue · comments

The -D_POSIX_C_SOURCE=1 define appears to exclude snprintf's prototype from stdio.h in some environments. Figure out if there's a different POSIX version that should be used, or another define that is also needed.

This issue is resolved by pull request #3

Need to additionally define -D_DARWIN_C_SOURCE=1 for Clang to re-enable snprintf declaration when -D_POSIX_C_SOURCE=1 is set.

Closed by pull request #3.