`__NDK_MAJOR` should be `__NDK_MAJOR__` (#14046)

compilation error occurs when compiling on Android system.

Closes #14046

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14046 from thejinchao:main 68d79d01b2
PiperOrigin-RevId: 566773496
pull/14137/head
Jin Chao 1 year ago committed by Copybara-Service
parent b577d8d1b9
commit 9471a88225
  1. 2
      src/google/protobuf/port_def.inc

@ -324,7 +324,7 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3),
#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \
!defined(_ARCH_PPC) && !defined(__wasm__) && \
!(defined(_MSC_VER) && defined(_M_IX86)) && !defined(__i386__) && \
!(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24)
!(defined(__NDK_MAJOR__) && __NDK_MAJOR__ <= 24)
// Compilation fails on ARM32: b/195943306
// Compilation fails on powerpc64le: b/187985113
// Compilation fails on X86 Windows:

Loading…
Cancel
Save