summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sync/sync_windows.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-02-28 14:55:49 +1100
committer Vas Crabb <vas@vastheman.com>2016-02-28 14:55:49 +1100
commit92b84c84635cba5f7b9d1c01cef1056a611fbb82 (patch)
treeb5df7bbf20ff4e436d1cdf1c467c9318c0fe9964 /src/osd/modules/sync/sync_windows.cpp
parentaec01e740736db267e452f0ed5947649f79e3408 (diff)
Pick off some low-hanging PTR64 fruit
Diffstat (limited to 'src/osd/modules/sync/sync_windows.cpp')
-rw-r--r--src/osd/modules/sync/sync_windows.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/osd/modules/sync/sync_windows.cpp b/src/osd/modules/sync/sync_windows.cpp
index c744f345e6f..04449f3fead 100644
--- a/src/osd/modules/sync/sync_windows.cpp
+++ b/src/osd/modules/sync/sync_windows.cpp
@@ -17,6 +17,9 @@
#include "eminline.h"
#include "osdsync.h"
+// C++ headers
+#include <cstdint>
+
//============================================================
// DEBUGGING
@@ -144,11 +147,7 @@ static unsigned __stdcall worker_thread_entry(void *param)
osd_thread *thread = (osd_thread *) param;
void *res;
res = thread->callback(thread->param);
-#ifdef PTR64
- return (unsigned) (long long) res;
-#else
- return (unsigned) res;
-#endif
+ return unsigned(uintptr_t(res));
}
osd_thread *osd_thread_create(osd_thread_callback callback, void *cbparam)