diff options
Diffstat (limited to '3rdparty/portmidi/porttime/ptmacosx_mach.c')
-rw-r--r-- | 3rdparty/portmidi/porttime/ptmacosx_mach.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/3rdparty/portmidi/porttime/ptmacosx_mach.c b/3rdparty/portmidi/porttime/ptmacosx_mach.c index c23210e4dce..73766d194e8 100644 --- a/3rdparty/portmidi/porttime/ptmacosx_mach.c +++ b/3rdparty/portmidi/porttime/ptmacosx_mach.c @@ -14,7 +14,9 @@ #include "sys/time.h" #include "pthread.h" -#define NSEC_PER_MSEC 1000000 +#if !defined NSEC_PER_MSEC +#define NSEC_PER_MSEC 1000000ull +#endif #define THREAD_IMPORTANCE 30 static int time_started_flag = FALSE; @@ -45,7 +47,7 @@ static void *Pt_CallbackProc(void *p) (thread_policy_t)&extendedPolicy, THREAD_EXTENDED_POLICY_COUNT); if (error != KERN_SUCCESS) { - mach_error("Couldn't set thread timeshare policy", error); + mach_error((char *)"Couldn't set thread timeshare policy", error); } precedencePolicy.importance = THREAD_IMPORTANCE; @@ -53,7 +55,7 @@ static void *Pt_CallbackProc(void *p) (thread_policy_t)&precedencePolicy, THREAD_PRECEDENCE_POLICY_COUNT); if (error != KERN_SUCCESS) { - mach_error("Couldn't set thread precedence policy", error); + mach_error((char *)"Couldn't set thread precedence policy", error); } |