jvoisin / fortify-headers

Standalone portable header-based implementation of FORTIFY_SOURCE=3
BSD Zero Clause License
19 stars 3 forks source link

Add guards to functions who need some #34

Closed jvoisin closed 11 months ago

jvoisin commented 11 months ago
16:47 <@q66> e.g. fdopen needs to be behind
16:47 <@q66> #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
16:47 <@q66>  || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
16:47 <@q66>  || defined(_BSD_SOURCE)
16:47 <@q66> but that's for a separate PR
16:48 <@q66> same with fmemopen etc