aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/stubs/platform_macros.h
diff options
context:
space:
mode:
authorGravatar Craig Donner <cdonner@google.com>2015-11-24 15:07:09 -0800
committerGravatar Craig Donner <cdonner@google.com>2015-11-24 15:07:18 -0800
commit8e869f76275253726da5a712de4d4a1b4de22ca2 (patch)
treedc246ba8c22bbde4c7ea31f2626ea60e8e5dc816 /src/google/protobuf/stubs/platform_macros.h
parentb640f216a56ae25aab9a1fc6f21aa1a56c304494 (diff)
Adds support for buliding protobuf with emscripten; we just needed the proper platform define used in the right place.
Diffstat (limited to 'src/google/protobuf/stubs/platform_macros.h')
-rw-r--r--src/google/protobuf/stubs/platform_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/google/protobuf/stubs/platform_macros.h b/src/google/protobuf/stubs/platform_macros.h
index 338d22f0..5cde8f4e 100644
--- a/src/google/protobuf/stubs/platform_macros.h
+++ b/src/google/protobuf/stubs/platform_macros.h
@@ -97,6 +97,8 @@ GOOGLE_PROTOBUF_PLATFORM_ERROR
#if TARGET_OS_IPHONE
#define GOOGLE_PROTOBUF_OS_IPHONE
#endif
+#elif defined(__EMSCRIPTEN__)
+#define GOOGLE_PROTOBUF_OS_EMSCRIPTEN
#elif defined(__native_client__)
#define GOOGLE_PROTOBUF_OS_NACL
#elif defined(sun)