Commit 1694a63994e58ea0f479cfab318d99c7cb9bbeba

Edward Thomson 2016-03-31T10:04:43

Merge pull request #3716 from libgit2/cmn/typedef-sizet Add a no-op size_t typedef for the doc parser

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/include/git2/common.h b/include/git2/common.h
index 0629abb..d7428d8 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 \