summaryrefslogtreecommitdiff
path: root/lib/gthreads.h
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2023-04-24 12:39:42 +0900
committerDaiki Ueno <ueno@gnu.org>2023-04-24 12:45:46 +0900
commitaa5950abab56b011331ad4331409b6ff8efb8aeb (patch)
treead363fb38e8b65c942876641cda9c76caa13b498 /lib/gthreads.h
parent0fe9cb6842d63761718046cc7dd7eb437e6c5163 (diff)
downloadgnutls-aa5950abab56b011331ad4331409b6ff8efb8aeb.tar.gz
build: re-indent code
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/gthreads.h')
-rw-r--r--lib/gthreads.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/gthreads.h b/lib/gthreads.h
index 9d7846f8b1..5ae79b4965 100644
--- a/lib/gthreads.h
+++ b/lib/gthreads.h
@@ -21,20 +21,22 @@
*/
#ifndef GNUTLS_LIB_GTHREADS_H
-# define GNUTLS_LIB_GTHREADS_H
+#define GNUTLS_LIB_GTHREADS_H
-# include <config.h>
+#include <config.h>
/* Using a C99-only compiler installed in parallel with modern C11 environment
* will see HAVE_THREADS_H, but won't be able to use _Thread_local. */
-# if __STDC_VERSION__ >= 201112 && !defined(__STDC_NO_THREADS__) && defined(HAVE_THREADS_H)
-# include <threads.h>
-# elif defined(__GNUC__) || defined(__SUNPRO_C) || defined(__xlC__) /* clang is covered by __GNUC__ */
-# define _Thread_local __thread
-# elif defined(_MSC_VER)
-# define _Thread_local __declspec(thread)
-# else
-# error Unsupported platform
-# endif
+#if __STDC_VERSION__ >= 201112 && !defined(__STDC_NO_THREADS__) && \
+ defined(HAVE_THREADS_H)
+#include <threads.h>
+#elif defined(__GNUC__) || defined(__SUNPRO_C) || \
+ defined(__xlC__) /* clang is covered by __GNUC__ */
+#define _Thread_local __thread
+#elif defined(_MSC_VER)
+#define _Thread_local __declspec(thread)
+#else
+#error Unsupported platform
+#endif
-#endif /* GNUTLS_LIB_GTHREADS_H */
+#endif /* GNUTLS_LIB_GTHREADS_H */