aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/map.h
diff options
context:
space:
mode:
authorBen Vanik <ben.vanik@gmail.com>2016-03-11 09:19:58 -0800
committerBen Vanik <ben.vanik@gmail.com>2016-03-11 09:19:58 -0800
commit58f07644eab25f68973ecab4bdc43fc318c26131 (patch)
tree497f8730e5c3eb15bdc6bb8762daae6c6e368c33 /src/google/protobuf/map.h
parent48ebb29a8ec118bf6b9ee39f6be42b57321c099a (diff)
downloadprotobuf-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/protobuf/map.h')
-rw-r--r--src/google/protobuf/map.h4
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)