Commit fad840d7 by Edward Thomson

credentials: provide backcompat for opaque structs

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.
parent bba9599a
...@@ -41,6 +41,13 @@ ...@@ -41,6 +41,13 @@
*/ */
#ifndef GIT_DEPRECATE_HARD #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 * @file git2/deprecated.h
* @brief libgit2 deprecated functions and values * @brief libgit2 deprecated functions and values
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment