summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h4
-rw-r--r--lib/timer.c10
2 files changed, 0 insertions, 14 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 2e642d38..dc8bd00f 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -77,10 +77,6 @@ static inline int u64_cmp(u64 i1, u64 i2)
#define STATIC_ASSERT(EXP) _Static_assert(EXP, #EXP)
#define STATIC_ASSERT_MSG(EXP,MSG) _Static_assert(EXP, MSG)
-#ifndef HAVE_THREAD_LOCAL
-#define _Thread_local
-#endif
-
/* Microsecond time */
typedef s64 btime;
diff --git a/lib/timer.c b/lib/timer.c
index 381163d0..f978a0f3 100644
--- a/lib/timer.c
+++ b/lib/timer.c
@@ -40,8 +40,6 @@
struct timeloop main_timeloop;
-#ifdef USE_PTHREADS
-
#include <pthread.h>
/* Data accessed and modified from proto/bfd/io.c */
@@ -62,14 +60,6 @@ timeloop_init_current(void)
void wakeup_kick_current(void);
-#else
-
-/* Just use main timelooop */
-static inline struct timeloop * timeloop_current(void) { return &main_timeloop; }
-static inline void timeloop_init_current(void) { }
-
-#endif
-
btime
current_time(void)
{