diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-03-26 12:03:28 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-03-26 12:06:07 +0000 |
commit | fad840d73bda6afb5dbd54d33799d87175301ce1 (patch) | |
tree | 6228077efd37bc5c9a5e5f51198921158843829a /include | |
parent | bba9599a6145c8c28d6333382212e58ef71c9817 (diff) | |
download | libgit2-ethomson/cred_deprecation.tar.gz |
credentials: provide backcompat for opaque structsethomson/cred_deprecation
The credential structures are now opaque and defined in
`sys/credential.h`. However, we should continue to provide them for
backward compatibility, unless `GIT_DEPRECATED_HARD` is set.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/deprecated.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index 61d0115fd..e5e56edae 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -41,6 +41,13 @@ */ #ifndef GIT_DEPRECATE_HARD +/* + * The credential structures are now opaque by default, and their + * definition has moved into the `sys/credential.h` header; include + * them here for backward compatibility. + */ +#include "sys/credential.h" + /** * @file git2/deprecated.h * @brief libgit2 deprecated functions and values |