Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
d8b6452e
Commit
d8b6452e
authored
9 years ago
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1005 from oon3m0oo/emscripten
Adds support for building protobuf with emscripten
parents
b640f216
8e869f76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
map.h
src/google/protobuf/map.h
+3
-1
platform_macros.h
src/google/protobuf/stubs/platform_macros.h
+2
-0
No files found.
src/google/protobuf/map.h
View file @
d8b6452e
...
...
@@ -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
<
class
NodeType
,
class
...
Args
>
void
construct
(
NodeType
*
p
,
Args
&&
...
args
)
{
new
(
static_cast
<
void
*>
(
p
))
NodeType
(
std
::
forward
<
Args
>
(
args
)...);
...
...
This diff is collapsed.
Click to expand it.
src/google/protobuf/stubs/platform_macros.h
View file @
d8b6452e
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment