summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sync/sync_windows.cpp
diff options
context:
space:
mode:
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)