]> git.proxmox.com Git - libgit2.git/commitdiff
Force the test's main function to use cdecl under Windows
authorCarlos Martín Nieto <carlos@cmartin.tk>
Sat, 6 Aug 2011 09:26:59 +0000 (11:26 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Sat, 6 Aug 2011 14:33:24 +0000 (16:33 +0200)
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
tests/test_main.c

index 1a35e6005c67a2fdcb0f38ff3c5ac7a23de98512..c9f8da3a41fd39107c7d2657d3ca4d07a4dff881 100644 (file)
@@ -69,7 +69,12 @@ static libgit2_suite suite_methods[]= {
 
 #define GIT_SUITE_COUNT (ARRAY_SIZE(suite_methods))
 
-int main(int GIT_UNUSED(argc), char *GIT_UNUSED(argv[]))
+#ifdef GIT_WIN32
+int __cdecl
+#else
+int
+#endif
+main(int GIT_UNUSED(argc), char *GIT_UNUSED(argv[]))
 {
        unsigned int i, failures;