Merge pull request #10622 from alalek:fix_build_js

Re-apply protobuf fix for JavaScript builds
pull/10628/head
Alexander Alekhin 7 years ago committed by GitHub
commit aa55cdb735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      3rdparty/protobuf/src/google/protobuf/stubs/port.h

@ -239,8 +239,7 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF);
#if defined(__clang__) && defined(__has_cpp_attribute) \
&& !defined(GOOGLE_PROTOBUF_OS_APPLE)
# if defined(GOOGLE_PROTOBUF_OS_NACL) || defined(EMSCRIPTEN) || \
__has_cpp_attribute(clang::fallthrough)
# if defined(GOOGLE_PROTOBUF_OS_NACL) || __has_cpp_attribute(clang::fallthrough)
# define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]]
# endif
#elif defined(__GNUC__) && __GNUC__ > 6

Loading…
Cancel
Save