summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-31 10:04:43 -0400
committerEdward Thomson <ethomson@github.com>2016-03-31 10:04:43 -0400
commit1694a63994e58ea0f479cfab318d99c7cb9bbeba (patch)
tree3a8fce3f78d4d6505a77c3ab29e04338d045e8b7
parentd53cc13e3a66e1b14a249bf48cc30d9fc31e9672 (diff)
parent98444536116279b4c4d150a0625b996de0883b80 (diff)
downloadlibgit2-1694a63994e58ea0f479cfab318d99c7cb9bbeba.tar.gz
Merge pull request #3716 from libgit2/cmn/typedef-sizet
Add a no-op size_t typedef for the doc parser
-rw-r--r--include/git2/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 0629abb7f..d7428d811 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -29,6 +29,14 @@
# include <inttypes.h>
#endif
+#ifdef DOCURIUM
+/*
+ * This is so clang's doc parser acknowledges comments on functions
+ * with size_t parameters.
+ */
+typedef size_t size_t;
+#endif
+
/** Declare a public function exported for application use. */
#if __GNUC__ >= 4
# define GIT_EXTERN(type) extern \