summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-10-12 09:17:01 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-10-12 09:35:50 +0300
commitd703691650ee8e6c3922f04f3a26f8827855cfad (patch)
tree9997df8323f4516a01861aefc2449f8298be3e29 /tests
parentb4c949bb32e7021b70b399b31d8535cc7b437e1c (diff)
downloadlibatomic_ops-d703691650ee8e6c3922f04f3a26f8827855cfad.tar.gz
Eliminate 'cast to long from void*' compiler warning in test_atomic
* tests/run_parallel.h (AO_PTRDIFF_T): Define to ptrdiff_t for all targets.
Diffstat (limited to 'tests')
-rw-r--r--tests/run_parallel.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/run_parallel.h b/tests/run_parallel.h
index d24b9e6..7500efa 100644
--- a/tests/run_parallel.h
+++ b/tests/run_parallel.h
@@ -37,12 +37,8 @@
# define abort() _exit(-1) /* there is no abort() in WinCE */
#endif
-#ifndef _WIN64
-# define AO_PTRDIFF_T long
-#elif defined(__int64)
-# define AO_PTRDIFF_T __int64
-#else
-# define AO_PTRDIFF_T long long
+#ifndef AO_PTRDIFF_T
+# define AO_PTRDIFF_T ptrdiff_t
#endif
typedef void * (* thr_func)(void *);