summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-07-15 15:23:35 +0200
committerMaria Matejka <mq@ucw.cz>2019-07-15 15:46:36 +0200
commit3782454e8dead1184e698fa84f7491182b54454e (patch)
tree3b85af15141a84b744d67923319ce2fb0f4d990f /lib
parentf634adc7dcf8cfc2a8ea8a61fe2f85d8aadf5a75 (diff)
Filter: Simpler filter context allocation
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 9743da32..30ea433c 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -73,10 +73,8 @@ static inline int u64_cmp(u64 i1, u64 i2)
#define UNUSED __attribute__((unused))
#define PACKED __attribute__((packed))
-#ifdef HAVE_THREAD_LOCAL
-#define THREAD_LOCAL _Thread_local
-#else
-#define THREAD_LOCAL
+#ifndef HAVE_THREAD_LOCAL
+#define _Thread_local
#endif
/* Microsecond time */