diff options
author | Ben Vanik <ben.vanik@gmail.com> | 2016-03-11 09:19:58 -0800 |
---|---|---|
committer | Ben Vanik <ben.vanik@gmail.com> | 2016-03-11 09:19:58 -0800 |
commit | 58f07644eab25f68973ecab4bdc43fc318c26131 (patch) | |
tree | 497f8730e5c3eb15bdc6bb8762daae6c6e368c33 /src/google | |
parent | 48ebb29a8ec118bf6b9ee39f6be42b57321c099a (diff) | |
download | protobuf-58f07644eab25f68973ecab4bdc43fc318c26131.tar.gz protobuf-58f07644eab25f68973ecab4bdc43fc318c26131.tar.bz2 protobuf-58f07644eab25f68973ecab4bdc43fc318c26131.zip |
Fixing compilation error when building with emscripten.
This change was previously done in //third_party in CL 108656107 but never made it to the open source project and was overwritten in an update.
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/map.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index 37e19b0a..83199380 100644 --- a/src/google/protobuf/map.h +++ b/src/google/protobuf/map.h @@ -545,7 +545,9 @@ class Map { } #if __cplusplus >= 201103L && !defined(GOOGLE_PROTOBUF_OS_APPLE) && \ - !defined(GOOGLE_PROTOBUF_OS_NACL) && !defined(GOOGLE_PROTOBUF_OS_ANDROID) + !defined(GOOGLE_PROTOBUF_OS_NACL) && \ + !defined(GOOGLE_PROTOBUF_OS_ANDROID) && \ + !defined(GOOGLE_PROTOBUF_OS_EMSCRIPTEN) template<class NodeType, class... Args> void construct(NodeType* p, Args&&... args) { // Clang 3.6 doesn't compile static casting to void* directly. (Issue #1266) |