osx x86 invalid intptr_t conversion (nw)

src/osd/sdl/output.cpp:86:50: error: format specifies type 'int' but the argument has type 'intptr_t' (aka 'long')
This commit is contained in:
Jeffrey Clark 2016-03-31 13:48:27 -05:00
parent 5306f42a77
commit 07ef71ef8b

View File

@ -11,6 +11,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <inttypes.h>
// MAME headers
#include "emu.h"
@ -32,12 +33,6 @@
*/
#ifdef PTR64
#define PID_FMT "%ld"
#else
#define PID_FMT "%d"
#endif
//============================================================
// TYPEDEFS
//============================================================
@ -83,7 +78,7 @@ bool sdl_osd_interface::output_init()
output = fdopen(fildes, "w");
osd_printf_verbose("output: opened output notifier file %s\n", SDLMAME_OUTPUT);
fprintf(output, "MAME " PID_FMT " START %s\n", osd_getpid(), this->machine().system().name);
fprintf(output, "MAME %" PRIxPTR " START %s\n", osd_getpid(), this->machine().system().name);
fflush(output);
}
@ -100,7 +95,7 @@ void sdl_osd_interface::output_exit()
{
if (output != NULL)
{
fprintf(output, "MAME " PID_FMT " STOP %s\n", osd_getpid(), machine().system().name);
fprintf(output, "MAME %" PRIxPTR " STOP %s\n", osd_getpid(), machine().system().name);
fflush(output);
fclose(output);
output = NULL;
@ -116,7 +111,7 @@ static void notifier_callback(const char *outname, INT32 value, void *param)
{
if (output != NULL)
{
fprintf(output, "OUT " PID_FMT " %s %d\n", osd_getpid(), outname, value);
fprintf(output, "OUT %" PRIxPTR " %s %d\n", osd_getpid(), outname, value);
fflush(output);
}
}