Feature #2722
define __STDC_WANT_LIB_EXT1__ for memset_s()
0%
Description
define __STDC_WANT_LIB_EXT1__
for memset_s() and other C11 Annex K extensions, where available.
(see man page http://www.unix.com/man-page/osx/3/memset_s/ )
diff --git a/src/first.h b/src/first.h index 0efd0f0..38a011f 100644 --- a/src/first.h +++ b/src/first.h @@ -9,4 +9,8 @@ # endif #endif +#ifndef __STDC_WANT_LIB_EXT1__ +#define __STDC_WANT_LIB_EXT1__ 1 +#endif + #endif
Associated revisions
History
Updated by gstrauss about 2 years ago
On some platforms, detection of memset_s() and defining HAVE_MEMSET_S might need user to run CPPFLAGS=-D__STDC_WANT_LIB_EXT1__=1 ./configure ...
for make, or similar for SCons, CMake
Updated by stbuehler about 2 years ago
As you said yourself __STDC_WANT_LIB_EXT1__
should also be used in the configure step.
Updated by gstrauss about 2 years ago
Would you like me to add -D__STDC_WANT_LIB_EXT1__=1 to CPPFLAGS in configure.ac and to add_definitions in src/CMakeLists.txt and autoconf.env.Append(CPPFLAGS = ... in SConstruct?
Updated by gstrauss about 2 years ago
- Status changed from Patch Pending to Fixed
committed in 51e0f208 to add define to first.h
Depending on feedback from those using memset_s() on their platforms, we might need to additionally modify detection logic during build configure time.
Also available in: Atom
[core] define STDC_WANT_LIB_EXT1 (fixes #2722)
x-ref:
"define STDC_WANT_LIB_EXT1 for memset_s()"
https://redmine.lighttpd.net/issues/2722