diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-13 23:26:54 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-14 11:57:05 +0000 |
commit | 24ac9e0c97ff9f20d096b4d93663276bc8bb2de1 (patch) | |
tree | 6ce5dbf9b0c70ba6ed59280d4e2adfd92fcf1a12 /src/common.h | |
parent | e19163761d5f51f1437fd291a89adf2aaa4aa262 (diff) | |
download | libgit2-24ac9e0c97ff9f20d096b4d93663276bc8bb2de1.tar.gz |
deprecation: ensure we GIT_EXTERN deprecated funcs
Although the error functions were deprecated, we did not properly mark
them as deprecated. We need to include the `deprecated.h` file in order
to ensure that the functions get their export attributes.
Similarly, do not define `GIT_DEPRECATE_HARD` within the library, or
those functions will also not get their export attributes. Define that
only on the tests and examples.
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 6e1eac834..18ba72dd1 100644 --- a/src/common.h +++ b/src/common.h @@ -79,6 +79,12 @@ #include "thread-utils.h" #include "integer.h" +/* + * Include the declarations for deprecated functions; this ensures + * that they're decorated with the proper extern/visibility attributes. + */ +#include "git2/deprecated.h" + #include <regex.h> #define DEFAULT_BUFSIZE 65536 |