|
@@ -60,19 +60,10 @@ extern int h_errno;
|
|
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
|
|
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
|
|
|
|
|
|
#ifdef _LIBC
|
|
#ifdef _LIBC
|
|
-# ifdef __UCLIBC_HAS_THREADS__
|
|
+# define __set_h_errno(x) (h_errno = (x))
|
|
-static inline int
|
|
+#endif
|
|
-__set_h_errno (int __err)
|
|
|
|
-{
|
|
|
|
- return *__h_errno_location () = __err;
|
|
|
|
-}
|
|
|
|
-# else
|
|
|
|
-# define __set_h_errno(x) (h_errno = (x))
|
|
|
|
-# endif /* __UCLIBC_HAS_THREADS__ */
|
|
|
|
-#endif /* _LIBC */
|
|
|
|
-
|
|
|
|
|
|
|
|
-#if !defined _LIBC || defined __UCLIBC_HAS_THREADS__
|
|
+#if defined __UCLIBC_HAS_THREADS__
|
|
/* Use a macro to access always the thread specific `h_errno' variable. */
|
|
/* Use a macro to access always the thread specific `h_errno' variable. */
|
|
# define h_errno (*__h_errno_location ())
|
|
# define h_errno (*__h_errno_location ())
|
|
#endif
|
|
#endif
|