JoshData / fast_diff_match_patch

Python package for Google's diff-match-patch native C++ implementation.
https://pypi.org/project/fast-diff-match-patch/
Apache License 2.0
73 stars 27 forks source link

Fix build issues with gcc 4.4 #2

Closed timonwong closed 9 years ago

timonwong commented 9 years ago

When building using gcc4.4 (Ships with RHEL/CentOS 6), we'll get following error messages:

interface.cpp:97: error: insufficient contextual information to determine type
interface.cpp:99: error: insufficient contextual information to determine type
interface.cpp:102: error: too many initializers for ‘PyMethodDef’
interface.cpp:102: error: too many initializers for ‘PyMethodDef’

This patch is a workaround for that (by simply creating a wrapper function for each template function).

JoshData commented 9 years ago

Neat, thanks!