diff --git a/p99/p99_threads.h b/p99/p99_threads.h
index 8fe8d0aa84ceedc8a060c4714ad5a4740129d56f..e78f6f0907012f1dc9ea1957de1779631560aa16 100644
--- a/p99/p99_threads.h
+++ b/p99/p99_threads.h
@@ -1029,6 +1029,8 @@ int p00_timespec_get(struct timespec *p00_ts, int p00_base) {
   }
 }
 
+#ifndef TIME_UTC
+
 /**
  ** @brief The ::timespec_get function sets the interval pointed to by
  ** @a p00_ts to hold the current calendar time based on the specified
@@ -1048,8 +1050,6 @@ int p00_timespec_get(struct timespec *p00_ts, int p00_base) {
 p99_inline
 int timespec_get(struct timespec *p00_ts, int p00_base);
 
-#ifndef TIME_UTC
-
 enum {
   p00_time_base,
   p00_time_utc,