Commit 73b58c9159204c0a0ca6ff48295f8395d46e8a3d

Vicent Marti 2013-01-04T20:00:09

clar: fix warning on Windows

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tests-clar/main.c b/tests-clar/main.c
index e9b3b64..0102c91 100644
--- a/tests-clar/main.c
+++ b/tests-clar/main.c
@@ -1,6 +1,11 @@
 #include "clar_libgit2.h"
 
-int main(int argc, char *argv[])
+#ifdef _WIN32
+__cdecl int
+#else
+int
+#endif
+main(int argc, char *argv[])
 {
 	int res;