Skip to content

Commit

Permalink
Force the test's main function to use cdecl under Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
  • Loading branch information
carlosmn committed Aug 6, 2011
1 parent 8c1d5d4 commit 6e6ec54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_main.c
Expand Up @@ -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;

Expand Down

0 comments on commit 6e6ec54

Please sign in to comment.