summaryrefslogtreecommitdiff
path: root/lib/pthread.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-11 09:37:55 +0100
committerBruno Haible <bruno@clisp.org>2019-12-11 10:06:39 +0100
commitc72f9acbc6a63e76df72c5708b33e867825b30bc (patch)
treecec438336f6599be89a15df4269d734a27652594 /lib/pthread.in.h
parentff29c880629e73def7cd6c4a954e919b174d31b6 (diff)
downloadgnulib-c72f9acbc6a63e76df72c5708b33e867825b30bc.tar.gz
pthread-thread: Fix compilation error in C++ mode on MSVC.
* lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the _GL_CXXALIAS_RPL invocation.
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r--lib/pthread.in.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index a70d0234e5..a6fb3d96e4 100644
--- a/lib/pthread.in.h
+++ b/lib/pthread.in.h
@@ -684,7 +684,7 @@ _GL_WARN_ON_USE (pthread_join, "pthread_join is not portable - "
# define pthread_exit rpl_pthread_exit
# endif
_GL_FUNCDECL_RPL (pthread_exit, _Noreturn void, (void *value));
-_GL_CXXALIAS_RPL (pthread_exit, _Noreturn void, (void *value));
+_GL_CXXALIAS_RPL (pthread_exit, void, (void *value));
# else
# if !@HAVE_PTHREAD_EXIT@
_GL_FUNCDECL_SYS (pthread_exit, _Noreturn void, (void *value));