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:
b4c949b
)
Eliminate 'cast to long from void*' compiler warning in test_atomic
author
Ivan Maidanski
<ivmai@mail.ru>
Wed, 12 Oct 2016 06:17:01 +0000
(09:17 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Wed, 12 Oct 2016 06:35:50 +0000
(09:35 +0300)
* tests/run_parallel.h (AO_PTRDIFF_T): Define to ptrdiff_t for all
targets.
tests/run_parallel.h
patch
|
blob
|
history
diff --git
a/tests/run_parallel.h
b/tests/run_parallel.h
index
d24b9e6
..
7500efa
100644
(file)
--- 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 *);