mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-19 07:22:14 +08:00
Feature test macros overhaul: pthread.h
Use internal macros for GNU extensions. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
4e8291b8b0
commit
96972e7198
@ -344,7 +344,7 @@ void _EXFUN(_pthread_cleanup_pop,
|
|||||||
_pthread_cleanup_pop(&_pthread_clup_ctx, (_execute)); \
|
_pthread_cleanup_pop(&_pthread_clup_ctx, (_execute)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE)
|
#if __GNU_VISIBLE
|
||||||
void _EXFUN(_pthread_cleanup_push_defer,
|
void _EXFUN(_pthread_cleanup_push_defer,
|
||||||
(struct _pthread_cleanup_context *_context,
|
(struct _pthread_cleanup_context *_context,
|
||||||
void (*_routine)(void *), void *_arg));
|
void (*_routine)(void *), void *_arg));
|
||||||
@ -362,7 +362,7 @@ void _EXFUN(_pthread_cleanup_pop_restore,
|
|||||||
#define pthread_cleanup_pop_restore_np(_execute) \
|
#define pthread_cleanup_pop_restore_np(_execute) \
|
||||||
_pthread_cleanup_pop_restore(&_pthread_clup_ctx, (_execute)); \
|
_pthread_cleanup_pop_restore(&_pthread_clup_ctx, (_execute)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif /* defined(_GNU_SOURCE) */
|
#endif /* __GNU_VISIBLE */
|
||||||
|
|
||||||
#if defined(_POSIX_THREAD_CPUTIME)
|
#if defined(_POSIX_THREAD_CPUTIME)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user