Fix error introduced accidentally in previous commit

This commit is contained in:
J. David Ibáñez
2015-10-11 12:08:53 +02:00
parent f5aa1829ac
commit d25a0d61de

View File

@@ -92,9 +92,10 @@ C_KEYWORDS = dict(libraries=['git2'],
# The modulename
# Simplified version of what cffi does: remove kwargs and vengine
preamble = "#include <git2.h>"
set_source = getattr(ffi, 'set_source', None)
if set_source is not None:
preamble = "#include <git2.h>"
set_source("pygit2._libgit2", preamble, **C_KEYWORDS)
ffi.cdef(C_HEADER_SRC)