summaryrefslogtreecommitdiff
path: root/Python/condvar.h
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-03 11:24:02 -0800
committerSteve Dower <steve.dower@microsoft.com>2016-12-03 11:24:02 -0800
commit9ca70643e30ef19ceb39644dde496b7dfc7fa6e6 (patch)
tree9dbef5e103e88ce6c36477306f285c16813e0866 /Python/condvar.h
parente724fe060b189a4879fd9713a24bbfe6c9eb008e (diff)
parent43ebbf7db2d3d3297e96693fd91ac8a654631438 (diff)
downloadcpython-9ca70643e30ef19ceb39644dde496b7dfc7fa6e6.tar.gz
Issue #28846: Various installer fixes
Diffstat (limited to 'Python/condvar.h')
-rw-r--r--Python/condvar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/condvar.h b/Python/condvar.h
index ced910fbea..9a71b17738 100644
--- a/Python/condvar.h
+++ b/Python/condvar.h
@@ -89,7 +89,7 @@ do { /* TODO: add overflow and truncation checks */ \
/* return 0 for success, 1 on timeout, -1 on error */
Py_LOCAL_INLINE(int)
-PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, PY_LONG_LONG us)
+PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, long long us)
{
int r;
struct timespec ts;
@@ -270,7 +270,7 @@ PyCOND_WAIT(PyCOND_T *cv, PyMUTEX_T *cs)
}
Py_LOCAL_INLINE(int)
-PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, PY_LONG_LONG us)
+PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us)
{
return _PyCOND_WAIT_MS(cv, cs, (DWORD)(us/1000));
}
@@ -363,7 +363,7 @@ PyCOND_WAIT(PyCOND_T *cv, PyMUTEX_T *cs)
* 2 to indicate that we don't know.
*/
Py_LOCAL_INLINE(int)
-PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, PY_LONG_LONG us)
+PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us)
{
return SleepConditionVariableSRW(cv, cs, (DWORD)(us/1000), 0) ? 2 : -1;
}