diff options
| author | Ivan Maidanski <ivmai@mail.ru> | 2013-01-07 12:31:48 +0400 |
|---|---|---|
| committer | Ivan Maidanski <ivmai@mail.ru> | 2013-01-07 12:31:48 +0400 |
| commit | 9f4a38ec06a037a709e2324304c2f89b3f41e55a (patch) | |
| tree | bc2f1d4bfea607f3f35fdf158f97b366bd4534a5 /tests/run_parallel.h | |
| parent | b78058a2a967cfa7807efd545c70c4a0c7bbb1a6 (diff) | |
| download | libatomic_ops-9f4a38ec06a037a709e2324304c2f89b3f41e55a.tar.gz | |
Fix missing abort() usage in atomic_ops_malloc and tests on WinCE
* src/atomic_ops_malloc.c (abort): Define to _exit(-1) if _WIN32_WCE
or __MINGW32CE__ (since there is no abort() in WinCE).
* tests/run_parallel.h (abort): Likewise.
* tests/test_stack.c (abort): Likewise.
Diffstat (limited to 'tests/run_parallel.h')
| -rw-r--r-- | tests/run_parallel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run_parallel.h b/tests/run_parallel.h index 7fae0b0..42110dc 100644 --- a/tests/run_parallel.h +++ b/tests/run_parallel.h @@ -33,6 +33,10 @@ #include "atomic_ops.h" +#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(abort) +# define abort() _exit(-1) /* there is no abort() in WinCE */ +#endif + #ifndef _WIN64 # define AO_PTRDIFF_T long #elif defined(__int64) |
