/* Function to get address of global `h_errno' variable. */
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
+libc_hidden_proto(__h_errno_location)
/* Macros for accessing h_errno from inside libc. */
#ifdef _LIBC
{
return &errno;
}
+#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
+libc_hidden_weak(__errno_location)
+#endif
{
return &h_errno;
}
+libc_hidden_weak(__h_errno_location)
# ifndef __ASSEMBLER__
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
+libc_hidden_proto(__errno_location)
# ifdef __UCLIBC_HAS_THREADS__
/* When using threads, errno is a per-thread value. */
;
# if defined __UCLIBC_HAS_THREADS__
# include <tls.h>
+# if defined USE___THREAD && USE___THREAD
+libc_hidden_proto(__errno_location)
+# endif
# endif
#endif /* !__ASSEMBLER__ */