From 8e869f76275253726da5a712de4d4a1b4de22ca2 Mon Sep 17 00:00:00 2001 From: Craig Donner Date: Tue, 24 Nov 2015 15:07:09 -0800 Subject: Adds support for buliding protobuf with emscripten; we just needed the proper platform define used in the right place. --- src/google/protobuf/map.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/google/protobuf/map.h') diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index 52fba603..4bd76f25 100644 --- a/src/google/protobuf/map.h +++ b/src/google/protobuf/map.h @@ -546,7 +546,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 void construct(NodeType* p, Args&&... args) { new (static_cast(p)) NodeType(std::forward(args)...); -- cgit v1.2.3