projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae4b4a
)
Fix 'AO_pt_lock undefined' error if cross-compiling manually (MinGW)
author
Ivan Maidanski
<ivmai@mail.ru>
Tue, 16 Jan 2018 08:50:35 +0000
(11:50 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 5 Mar 2018 21:32:28 +0000
(
00:32
+0300)
* 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
patch
|
blob
|
history
diff --git
a/tests/test_atomic.c
b/tests/test_atomic.c
index
eed7dea
..
6daa884
100644
(file)
--- 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 <stdio.h>
int main(void)