Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-15 00:35:32 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 05:09:00 +0300
commit96972e71981c2d9b910b6d287fc94fdd40d6fab5 (patch)
treef58c3bf2e2f76d1d22838955c21ce672d9069fee /newlib/libc
parent4e8291b8b0f74b54cdbaaf3a4562a778f6e90bc0 (diff)
Feature test macros overhaul: pthread.h
Use internal macros for GNU extensions. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index 20df8e43b..e1de176a7 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -344,7 +344,7 @@ void _EXFUN(_pthread_cleanup_pop,
_pthread_cleanup_pop(&_pthread_clup_ctx, (_execute)); \
} while (0)
-#if defined(_GNU_SOURCE)
+#if __GNU_VISIBLE
void _EXFUN(_pthread_cleanup_push_defer,
(struct _pthread_cleanup_context *_context,
void (*_routine)(void *), void *_arg));
@@ -362,7 +362,7 @@ void _EXFUN(_pthread_cleanup_pop_restore,
#define pthread_cleanup_pop_restore_np(_execute) \
_pthread_cleanup_pop_restore(&_pthread_clup_ctx, (_execute)); \
} while (0)
-#endif /* defined(_GNU_SOURCE) */
+#endif /* __GNU_VISIBLE */
#if defined(_POSIX_THREAD_CPUTIME)