]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
pthread: Simplify condition for hidden proto
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 22 Nov 2025 10:54:12 +0000 (11:54 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 22 Nov 2025 20:55:02 +0000 (21:55 +0100)
This is not needed yet for htl (only the Linux mq_notify), but we can as
well just simplify the header.

include/pthread.h

index 819bf3f235e36d5988c84a9dca5037b23a9cc449..9e31b74916d78c6faa5aa7b05186d76f0a3c731c 100644 (file)
@@ -8,14 +8,10 @@ extern int __pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
                                 const pthread_barrierattr_t *__restrict
                                 __attr, unsigned int __count)
      __THROW __nonnull ((1));
-#if PTHREAD_IN_LIBC
 libc_hidden_proto (__pthread_barrier_init)
-#endif
 extern int __pthread_barrier_wait (pthread_barrier_t *__barrier)
      __THROWNL __nonnull ((1));
-#if PTHREAD_IN_LIBC
 libc_hidden_proto (__pthread_barrier_wait)
-#endif
 
 /* This function is called to initialize the pthread library.  */
 extern void __pthread_initialize (void) __attribute__ ((weak));