Commit b78bcbb9b1217d6aada0ab98f3053cb8f151a8a3

Edward Thomson 2019-01-09T13:21:23

buffer: wrap EXTERN in DEPRECATED The GIT_EXTERN macro needs to provide order-specific attributes; update users of the GIT_DEPRECATED macro to allow for that.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/git2/buffer.h b/include/git2/buffer.h
index c06e2b2..050afb9 100644
--- a/include/git2/buffer.h
+++ b/include/git2/buffer.h
@@ -81,7 +81,7 @@ GIT_EXTERN(void) git_buf_dispose(git_buf *buffer);
  *
  * This function is going to be removed in v0.30.0.
  */
-GIT_EXTERN(void) GIT_DEPRECATED(git_buf_free)(git_buf *buffer);
+GIT_DEPRECATED(GIT_EXTERN(void)) git_buf_free(git_buf *buffer);
 
 /**
  * Resize the buffer allocation to make more space.