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
dc80689a
Commit
dc80689a
authored
Aug 03, 2015
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #653 from airtimemedia/master
Various compilation fixes
parents
b59bfcb3
c6095505
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
13 deletions
+9
-13
libprotobuf-lite.cmake
cmake/libprotobuf-lite.cmake
+1
-0
libprotobuf.cmake
cmake/libprotobuf.cmake
+1
-0
java_map_field.cc
src/google/protobuf/compiler/java/java_map_field.cc
+1
-3
java_map_field.h
src/google/protobuf/compiler/java/java_map_field.h
+0
-3
java_map_field_lite.cc
src/google/protobuf/compiler/java/java_map_field_lite.cc
+1
-3
java_map_field_lite.h
src/google/protobuf/compiler/java/java_map_field_lite.h
+0
-3
map.h
src/google/protobuf/map.h
+1
-1
mutex.h
src/google/protobuf/stubs/mutex.h
+4
-0
No files found.
cmake/libprotobuf-lite.cmake
View file @
dc80689a
...
...
@@ -24,6 +24,7 @@ set(libprotobuf_lite_files
add_library
(
libprotobuf-lite
${
libprotobuf_lite_files
}
)
target_link_libraries
(
libprotobuf-lite
${
CMAKE_THREAD_LIBS_INIT
}
)
target_include_directories
(
libprotobuf-lite PUBLIC
${
protobuf_source_dir
}
/src
)
set_target_properties
(
libprotobuf-lite PROPERTIES
COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS
OUTPUT_NAME
${
LIB_PREFIX
}
protobuf-lite
)
cmake/libprotobuf.cmake
View file @
dc80689a
...
...
@@ -54,6 +54,7 @@ set(libprotobuf_files
add_library
(
libprotobuf
${
libprotobuf_lite_files
}
${
libprotobuf_files
}
)
target_link_libraries
(
libprotobuf
${
CMAKE_THREAD_LIBS_INIT
}
${
ZLIB_LIBRARIES
}
)
target_include_directories
(
libprotobuf PUBLIC
${
protobuf_source_dir
}
/src
)
set_target_properties
(
libprotobuf PROPERTIES
COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS
OUTPUT_NAME
${
LIB_PREFIX
}
protobuf
)
src/google/protobuf/compiler/java/java_map_field.cc
View file @
dc80689a
...
...
@@ -156,9 +156,7 @@ ImmutableMapFieldGenerator(const FieldDescriptor* descriptor,
int
messageBitIndex
,
int
builderBitIndex
,
Context
*
context
)
:
descriptor_
(
descriptor
),
messageBitIndex_
(
messageBitIndex
),
builderBitIndex_
(
builderBitIndex
),
context_
(
context
),
name_resolver_
(
context
->
GetNameResolver
())
{
:
descriptor_
(
descriptor
),
name_resolver_
(
context
->
GetNameResolver
())
{
SetMessageVariables
(
descriptor
,
messageBitIndex
,
builderBitIndex
,
context
->
GetFieldGeneratorInfo
(
descriptor
),
name_resolver_
,
&
variables_
);
...
...
src/google/protobuf/compiler/java/java_map_field.h
View file @
dc80689a
...
...
@@ -68,9 +68,6 @@ class ImmutableMapFieldGenerator : public ImmutableFieldGenerator {
private
:
const
FieldDescriptor
*
descriptor_
;
map
<
string
,
string
>
variables_
;
const
int
messageBitIndex_
;
const
int
builderBitIndex_
;
Context
*
context_
;
ClassNameResolver
*
name_resolver_
;
};
...
...
src/google/protobuf/compiler/java/java_map_field_lite.cc
View file @
dc80689a
...
...
@@ -139,9 +139,7 @@ ImmutableMapFieldLiteGenerator(const FieldDescriptor* descriptor,
int
messageBitIndex
,
int
builderBitIndex
,
Context
*
context
)
:
descriptor_
(
descriptor
),
messageBitIndex_
(
messageBitIndex
),
builderBitIndex_
(
builderBitIndex
),
context_
(
context
),
name_resolver_
(
context
->
GetNameResolver
())
{
:
descriptor_
(
descriptor
),
name_resolver_
(
context
->
GetNameResolver
())
{
SetMessageVariables
(
descriptor
,
messageBitIndex
,
builderBitIndex
,
context
->
GetFieldGeneratorInfo
(
descriptor
),
name_resolver_
,
&
variables_
);
...
...
src/google/protobuf/compiler/java/java_map_field_lite.h
View file @
dc80689a
...
...
@@ -67,9 +67,6 @@ class ImmutableMapFieldLiteGenerator : public ImmutableFieldLiteGenerator {
private
:
const
FieldDescriptor
*
descriptor_
;
map
<
string
,
string
>
variables_
;
const
int
messageBitIndex_
;
const
int
builderBitIndex_
;
Context
*
context_
;
ClassNameResolver
*
name_resolver_
;
};
...
...
src/google/protobuf/map.h
View file @
dc80689a
...
...
@@ -172,7 +172,7 @@ class Map {
!defined(GOOGLE_PROTOBUF_OS_NACL) && !defined(GOOGLE_PROTOBUF_OS_ANDROID)
template
<
class
NodeType
,
class
...
Args
>
void
construct
(
NodeType
*
p
,
Args
&&
...
args
)
{
new
(
p
)
NodeType
(
std
::
forward
<
Args
>
(
args
)...);
new
(
(
void
*
)
p
)
NodeType
(
std
::
forward
<
Args
>
(
args
)...);
}
template
<
class
NodeType
>
...
...
src/google/protobuf/stubs/mutex.h
View file @
dc80689a
...
...
@@ -30,6 +30,10 @@
#ifndef GOOGLE_PROTOBUF_STUBS_MUTEX_H_
#define GOOGLE_PROTOBUF_STUBS_MUTEX_H_
#ifdef GOOGLE_PROTOBUF_NO_THREADLOCAL
#include <pthread.h>
#endif
#include <google/protobuf/stubs/macros.h>
// ===================================================================
...
...
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