wafsamba/replace: move __STDC_WANT_LIB_EXT1__ to CFLAGS
authorStefan Metzmacher <metze@samba.org>
Sun, 27 Jan 2019 19:27:42 +0000 (20:27 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 29 Jan 2019 21:09:07 +0000 (22:09 +0100)
commitb2050db67b47ab5d8ac9bf5b223b3a3289eb854e
tree57669b91e0e53c57f20ed974b85650558b7d9c28
parente49df24e80a1c0bc2a1cc46c026e2aebfd5d6ddd
wafsamba/replace: move __STDC_WANT_LIB_EXT1__ to CFLAGS

This fixes the build of python bindings, which use memset_s()
(via ZERO_STRUCT).

In python bindings Python.h needs to be the first header, which means
is already includes string.h. Defining __STDC_WANT_LIB_EXT1__ in
replace.h is too late in that case.

This fixes the --check-c-compiler=gcc --picky-developer on FreeBSD 12.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
buildtools/wafsamba/wscript
lib/replace/replace.h