summaryrefslogtreecommitdiff
path: root/tests/test_main.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-08-06 11:26:59 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-08-06 16:33:24 +0200
commit6e6ec54bebb41fd0c0f1171b04d13306937b9636 (patch)
treefe8eba45741bf1c5d6922c6b82b9922eb9f7f1ea /tests/test_main.c
parent8c1d5d4839419e6dca0b3fd66f17864c5e7d60e3 (diff)
downloadlibgit2-6e6ec54bebb41fd0c0f1171b04d13306937b9636.tar.gz
Force the test's main function to use cdecl under Windows
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'tests/test_main.c')
-rw-r--r--tests/test_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_main.c b/tests/test_main.c
index 1a35e6005..c9f8da3a4 100644
--- a/tests/test_main.c
+++ b/tests/test_main.c
@@ -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;