[openssl] OpenSSL_1_1_1-stable update

tomas at openssl.org tomas at openssl.org
Thu Apr 22 15:53:07 UTC 2021


The branch OpenSSL_1_1_1-stable has been updated
       via  1636de49219fd9ee11c91015f9c079c45aaf57c6 (commit)
      from  e41290cfc007b833b393864cf12e0d8d815b7081 (commit)


- Log -----------------------------------------------------------------
commit 1636de49219fd9ee11c91015f9c079c45aaf57c6
Author: Niclas Rosenvik <youremailsarecrap at gmail.com>
Date:   Tue Apr 20 19:14:27 2021 +0200

    Some compilers define __STDC_VERSION__ in c++
    
    Some compilers(g++ on Solaris/Illumos) define __STDC__VERSION__ in c++ .
    This causes c++ code that uses openssl to break on these compilers since
    _Noreturn is not a keyword in c++ .
    
    CLA: trivial
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14944)
    
    (cherry picked from commit 1f3b58d8413cfa3824e9c0a146dee6ceedbc367e)

-----------------------------------------------------------------------

Summary of changes:
 include/openssl/e_os2.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/openssl/e_os2.h b/include/openssl/e_os2.h
index cf308eee2c..4c4975dbfd 100644
--- a/include/openssl/e_os2.h
+++ b/include/openssl/e_os2.h
@@ -279,7 +279,8 @@ typedef unsigned __int64 uint64_t;
 #  define ossl_inline inline
 # endif
 
-# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
+     !defined(__cplusplus) 
 #  define ossl_noreturn _Noreturn
 # elif defined(__GNUC__) && __GNUC__ >= 2
 #  define ossl_noreturn __attribute__((noreturn))


More information about the openssl-commits mailing list