From 354f84cbb7664f0444959fbfdb687577034f2292 Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Wed, 22 Aug 2018 19:07:14 +0100 Subject: [PATCH] See if this fixes old Windows compiler builds --- test/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/thread.c b/test/thread.c index 742c6e5c..cbb0fc9f 100644 --- a/test/thread.c +++ b/test/thread.c @@ -30,6 +30,7 @@ #include #include #include + #define WINAPI #else #include #endif @@ -213,8 +214,7 @@ void myassert(char* filename, int lineno, char* description, int value, char* fo MyLog(LOGA_DEBUG, "Assertion succeeded, file %s, line %d, description: %s", filename, lineno, description); } - -thread_return_type sem_secondary(void* n) +static thread_return_type WINAPI sem_secondary(void* n) { int rc = 0; sem_type sem = n; @@ -409,7 +409,7 @@ int test_cond(struct Options options) #endif -thread_return_type mutex_secondary(void* n) +static thread_return_type WINAPI mutex_secondary(void* n) { int rc = 0; mutex_type mutex = n;