mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
Typo fixes for "Don't assume __secure_getenv is available"
libgfortran/ * runtime/environ.c (weak_secure_getenv): Fix "__secure_gettime" vs. "__secure_getenv" typo. (secure_getenv): Fix "HAVE__SECURE_GETENV" vs. "HAVE___SECURE_GETENV" typo. From-SVN: r247952
This commit is contained in:
parent
fa846918fc
commit
9ef6dfbaf2
@ -1,3 +1,10 @@
|
||||
2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
|
||||
|
||||
* runtime/environ.c (weak_secure_getenv): Fix "__secure_gettime"
|
||||
vs. "__secure_getenv" typo.
|
||||
(secure_getenv): Fix "HAVE__SECURE_GETENV"
|
||||
vs. "HAVE___SECURE_GETENV" typo.
|
||||
|
||||
2017-05-11 Janne Blomqvist <jb@gcc.gnu.org>
|
||||
|
||||
* libgfortran.h: HAVE_SECURE_GETENV: Don't check
|
||||
|
@ -40,13 +40,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||
|
||||
#if SUPPORTS_WEAKREF && defined(HAVE___SECURE_GETENV)
|
||||
static char* weak_secure_getenv (const char*)
|
||||
__attribute__((__weakref__("__secure_gettime")));
|
||||
__attribute__((__weakref__("__secure_getenv")));
|
||||
#endif
|
||||
|
||||
char *
|
||||
secure_getenv (const char *name)
|
||||
{
|
||||
#if SUPPORTS_WEAKREF && defined(HAVE__SECURE_GETENV)
|
||||
#if SUPPORTS_WEAKREF && defined(HAVE___SECURE_GETENV)
|
||||
if (weak_secure_getenv)
|
||||
return weak_secure_getenv (name);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user