* 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.
# include <pthread.h>
#endif
+#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(abort)
+# define abort() _exit(-1) /* there is no abort() in WinCE */
+#endif
+
/*
* We round up each allocation request to the next power of two
* minus one word.
#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)
#include "atomic_ops_stack.h" /* includes atomic_ops.h as well */
+#if (defined(_WIN32_WCE) || defined(__MINGW32CE__)) && !defined(abort)
+# define abort() _exit(-1) /* there is no abort() in WinCE */
+#endif
+
#ifndef MAX_NTHREADS
# define MAX_NTHREADS 100
#endif