Fix the C++ compiler version check (#20195)

Since fe535930d3, the minimum C++ version is C++17.

Closes #20195

PiperOrigin-RevId: 722768660
pull/20210/head
y-yagi 3 weeks ago committed by Copybara-Service
parent 7e93fe636a
commit 73a3853479
  1. 4
      php/ext/google/protobuf/php-upb.c
  2. 4
      php/ext/google/protobuf/php-upb.h
  3. 4
      ruby/ext/google/protobuf_c/ruby-upb.c
  4. 4
      ruby/ext/google/protobuf_c/ruby-upb.h
  5. 4
      upb/port/def.inc

@ -24,9 +24,9 @@
*/ */
#if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ #if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
(defined(__cplusplus) && __cplusplus >= 201402L) || \ (defined(__cplusplus) && __cplusplus >= 201703L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)) (defined(_MSC_VER) && _MSC_VER >= 1900))
#error upb requires C99 or C++14 or MSVC >= 2015. #error upb requires C99 or C++17 or MSVC >= 2015.
#endif #endif
// Portable check for GCC minimum version: // Portable check for GCC minimum version:

@ -23,9 +23,9 @@
*/ */
#if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ #if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
(defined(__cplusplus) && __cplusplus >= 201402L) || \ (defined(__cplusplus) && __cplusplus >= 201703L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)) (defined(_MSC_VER) && _MSC_VER >= 1900))
#error upb requires C99 or C++14 or MSVC >= 2015. #error upb requires C99 or C++17 or MSVC >= 2015.
#endif #endif
// Portable check for GCC minimum version: // Portable check for GCC minimum version:

@ -24,9 +24,9 @@
*/ */
#if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ #if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
(defined(__cplusplus) && __cplusplus >= 201402L) || \ (defined(__cplusplus) && __cplusplus >= 201703L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)) (defined(_MSC_VER) && _MSC_VER >= 1900))
#error upb requires C99 or C++14 or MSVC >= 2015. #error upb requires C99 or C++17 or MSVC >= 2015.
#endif #endif
// Portable check for GCC minimum version: // Portable check for GCC minimum version:

@ -25,9 +25,9 @@
*/ */
#if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ #if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
(defined(__cplusplus) && __cplusplus >= 201402L) || \ (defined(__cplusplus) && __cplusplus >= 201703L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)) (defined(_MSC_VER) && _MSC_VER >= 1900))
#error upb requires C99 or C++14 or MSVC >= 2015. #error upb requires C99 or C++17 or MSVC >= 2015.
#endif #endif
// Portable check for GCC minimum version: // Portable check for GCC minimum version:

@ -28,9 +28,9 @@
*/ */
#if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ #if !((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
(defined(__cplusplus) && __cplusplus >= 201402L) || \ (defined(__cplusplus) && __cplusplus >= 201703L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)) (defined(_MSC_VER) && _MSC_VER >= 1900))
#error upb requires C99 or C++14 or MSVC >= 2015. #error upb requires C99 or C++17 or MSVC >= 2015.
#endif #endif
// Portable check for GCC minimum version: // Portable check for GCC minimum version:

Loading…
Cancel
Save