Commit 9a490318c826157cf7c346eea5509e6b1e8220c4

Patrick Steinhardt 2020-03-26T13:55:05

Merge pull request #5465 from libgit2/ethomson/cred_deprecation credentials: provide backcompat for opaque structs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index 61d0115..e5e56ed 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