mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Re-apply protobuf fix for JavaScript builds
original commit: f503515082
JavaScript bindings for dnn module
This commit is contained in:
parent
a55aed5f42
commit
ec8d39d059
@ -239,8 +239,7 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF);
|
|||||||
|
|
||||||
#if defined(__clang__) && defined(__has_cpp_attribute) \
|
#if defined(__clang__) && defined(__has_cpp_attribute) \
|
||||||
&& !defined(GOOGLE_PROTOBUF_OS_APPLE)
|
&& !defined(GOOGLE_PROTOBUF_OS_APPLE)
|
||||||
# if defined(GOOGLE_PROTOBUF_OS_NACL) || defined(EMSCRIPTEN) || \
|
# if defined(GOOGLE_PROTOBUF_OS_NACL) || __has_cpp_attribute(clang::fallthrough)
|
||||||
__has_cpp_attribute(clang::fallthrough)
|
|
||||||
# define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]]
|
# define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]]
|
||||||
# endif
|
# endif
|
||||||
#elif defined(__GNUC__) && __GNUC__ > 6
|
#elif defined(__GNUC__) && __GNUC__ > 6
|
||||||
|
Loading…
Reference in New Issue
Block a user