summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog6
-rw-r--r--lib/pthread.in.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bbb7249b2..c87e8a06e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-12-11 Bruno Haible <bruno@clisp.org>
+
+ 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.
+
2019-12-08 Bruno Haible <bruno@clisp.org>
Fix compilation errors in C++ mode on Haiku.
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));