]> Savannah Git Hosting - gnulib.git/commitdiff
pthread-thread: Fix compilation error in C++ mode on MSVC.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Dec 2019 08:37:55 +0000 (09:37 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Dec 2019 09:06:39 +0000 (10:06 +0100)
* lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
_GL_CXXALIAS_RPL invocation.

ChangeLog
lib/pthread.in.h

index 0bbb7249b2ce8c5278d40c9bf710439f0936b158..c87e8a06e5dac8c2055ee81a5eb761c1aaf0b5cb 100644 (file)
--- 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.
index a70d0234e525e654c12c4cec6472b7f00f1a5568..a6fb3d96e4f428204d22e986bff8b33f3f3da5a4 100644 (file)
@@ -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));