Let's define this macro in one place only.
Signed-off-by: Karel Zak <kzak@redhat.com>
#define UL_PROTECT_ERRNO __attribute__((__cleanup__(ul_reset_errno))) \
__attribute__((__unused__)) int __ul_saved_errno = errno
+
+
+/*
+ * thread-local storage
+ */
+#ifdef HAVE_TLS
+# define THREAD_LOCAL static __thread
+#else
+# define THREAD_LOCAL static
+#endif
+
#endif /* UTIL_LINUX_C_H */
#include "randutils.h"
#include "nls.h"
-#ifdef HAVE_TLS
-#define THREAD_LOCAL static __thread
-#else
-#define THREAD_LOCAL static
-#endif
#ifdef HAVE_GETRANDOM
# include <sys/random.h>
#include "sha1.h"
#include "timeutils.h"
-#define THREAD_LOCAL static __thread
#ifdef _WIN32
static void gettimeofday (struct timeval *tv, void *dummy)