summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sync/sync_sdl.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_sdl.cpp
parentaec01e740736db267e452f0ed5947649f79e3408 (diff)
Pick off some low-hanging PTR64 fruit
Diffstat (limited to 'src/osd/modules/sync/sync_sdl.cpp')
-rw-r--r--src/osd/modules/sync/sync_sdl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/osd/modules/sync/sync_sdl.cpp b/src/osd/modules/sync/sync_sdl.cpp
index 73b735fefb3..c667f17cedb 100644
--- a/src/osd/modules/sync/sync_sdl.cpp
+++ b/src/osd/modules/sync/sync_sdl.cpp
@@ -11,6 +11,7 @@
#include "sdlinc.h"
// standard C headers
+#include <cstdint>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
@@ -175,11 +176,7 @@ static int worker_thread_entry(void *param)
void *res;
res = thread->callback(thread->param);
-#ifdef PTR64
- return (int) (INT64) res;
-#else
- return (int) res;
-#endif
+ return int(intptr_t(res));
}
osd_thread *osd_thread_create(osd_thread_callback callback, void *cbparam)