Commit b3be0fc7562d51df415c14abf671deb37d8f89ef

Ramsay Jones 2008-12-03T23:54:47

Fix an "implicit function definition" warning on cygwin In particular, the warning relates to malloc(), which is declared in <stdlib.h>. This header is now included, indirectly, via the "common.h" header. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/oid.c b/src/oid.c
index 5f34085..bca03c4 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -23,6 +23,7 @@
  * Boston, MA 02110-1301, USA.
  */
 
+#include "common.h"
 #include "git/oid.h"
 #include <string.h>