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
e1abdf2c
Commit
e1abdf2c
authored
Dec 22, 2015
by
Josh Haberman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compile for Python 3. There are still some crashes though.
parent
d5fb408d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
map_container.cc
python/google/protobuf/pyext/map_container.cc
+0
-0
map_container.h
python/google/protobuf/pyext/map_container.h
+10
-2
setup.py
python/setup.py
+1
-1
No files found.
python/google/protobuf/pyext/map_container.cc
View file @
e1abdf2c
This diff is collapsed.
Click to expand it.
python/google/protobuf/pyext/map_container.h
View file @
e1abdf2c
...
...
@@ -111,8 +111,16 @@ struct MessageMapContainer : public MapContainer {
PyObject
*
message_dict
;
};
extern
PyTypeObject
ScalarMapContainer_Type
;
extern
PyTypeObject
MessageMapContainer_Type
;
#if PY_MAJOR_VERSION >= 3
extern
PyObject
*
MessageMapContainer_Type
;
extern
PyType_Spec
MessageMapContainer_Type_spec
;
extern
PyObject
*
ScalarMapContainer_Type
;
extern
PyType_Spec
ScalarMapContainer_Type_spec
;
#else
extern
PyTypeObject
MessageMapContainer_Type
;
extern
PyTypeObject
ScalarMapContainer_Type
;
#endif
extern
PyTypeObject
MapIterator_Type
;
// Both map types use the same iterator.
// Builds a MapContainer object, from a parent message and a
...
...
python/setup.py
View file @
e1abdf2c
...
...
@@ -162,7 +162,7 @@ if __name__ == '__main__':
extra_compile_args
=
[
'-Wno-write-strings'
,
'-Wno-invalid-offsetof'
]
test_conformance
.
target
=
'test_python_cpp'
if
"clang"
in
os
.
popen
(
'$CC --version'
)
.
read
():
if
"clang"
in
os
.
popen
(
'$CC --version
2> /dev/null
'
)
.
read
():
extra_compile_args
.
append
(
'-Wno-shorten-64-to-32'
)
if
warnings_as_errors
in
sys
.
argv
:
...
...
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