Fix public header on sys/refs.h

GIT_BEGIN/END_DECL were missing from sys/refs.h and preventing
compilation with g++ as the symbol were mangled.
This commit is contained in:
Damien PROFETA 2014-12-19 15:31:49 +01:00
parent 629417bd10
commit ceb651c9b0

View File

@ -11,6 +11,15 @@
#include "git2/types.h"
#include "git2/oid.h"
/**
* @file git2/sys/refs.h
* @brief Low-level Git ref creation
* @defgroup git_backend Git custom backend APIs
* @ingroup Git
* @{
*/
GIT_BEGIN_DECL
/**
* Create a new direct reference from an OID.
*
@ -35,4 +44,6 @@ GIT_EXTERN(git_reference *) git_reference__alloc_symbolic(
const char *name,
const char *target);
/** @} */
GIT_END_DECL
#endif