Better error code when lacking __SIZEOF_INT128__
authorRichard Levitte <levitte@openssl.org>
Tue, 22 May 2018 11:57:29 +0000 (13:57 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 23 May 2018 09:57:04 +0000 (11:57 +0200)
Fixes #6327

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6328)

crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c

index 5b8da3f817e173027f19bb0b138883be62b145f0..364b7f246d7b72d237c058094d9cc2a25a98a129 100644 (file)
@@ -45,7 +45,7 @@ NON_EMPTY_TRANSLATION_UNIT
 typedef __uint128_t uint128_t;  /* nonstandard; implemented by gcc on 64-bit
                                  * platforms */
 # else
-#  error "Need GCC 4.0 or later to define type uint128_t"
+#  error "Your compiler doesn't appear to support 128-bit integer types"
 # endif
 
 typedef uint8_t u8;
index 5eee25cde26a1cbf13404557c0215c5aff4f3869..19caa031c8546c300b8ea5cd569d7bda6f4e2d98 100644 (file)
@@ -47,7 +47,7 @@ typedef __uint128_t uint128_t;  /* nonstandard; implemented by gcc on 64-bit
                                  * platforms */
 typedef __int128_t int128_t;
 # else
-#  error "Need GCC 4.0 or later to define type uint128_t"
+#  error "Your compiler doesn't appear to support 128-bit integer types"
 # endif
 
 typedef uint8_t u8;
index 97846f8531a75dde8b731d0cbc86657633406865..3f68ae3c1c62cd7990a290f162578c232184d120 100644 (file)
@@ -45,7 +45,7 @@ NON_EMPTY_TRANSLATION_UNIT
 typedef __uint128_t uint128_t;  /* nonstandard; implemented by gcc on 64-bit
                                  * platforms */
 # else
-#  error "Need GCC 4.0 or later to define type uint128_t"
+#  error "Your compiler doesn't appear to support 128-bit integer types"
 # endif
 
 typedef uint8_t u8;