From 7d3482f57fe84e2f93310df26bcb16407594c51d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 16 Jan 2018 11:50:35 +0300 Subject: [PATCH] Fix 'AO_pt_lock undefined' error if cross-compiling manually (MinGW) * tests/test_atomic.c [AO_USE_PTHREAD_DEFS] (main): Skip the test if __MINGW32__ (even if AO_NO_PTHREADS is not defined). --- tests/test_atomic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_atomic.c b/tests/test_atomic.c index eed7dea..6daa884 100644 --- a/tests/test_atomic.c +++ b/tests/test_atomic.c @@ -15,7 +15,8 @@ # include "config.h" #endif -#if defined(AO_NO_PTHREADS) && defined(AO_USE_PTHREAD_DEFS) +#if (defined(AO_NO_PTHREADS) || defined(__MINGW32__)) \ + && defined(AO_USE_PTHREAD_DEFS) # include int main(void) -- 2.7.4