From 03af971f8edadd51e3f1ec3c7bb4f6bdbf622854 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 13 Nov 2018 08:26:12 -0500 Subject: [PATCH] lib-src/portmidi/porttime: fix warning about macro redefinition... ... there is a difference in the type, not the value, of the constant defined by the two versions of the macro. See clock_types.h in the Mac SDK: define NSEC_PER_MSEC 1000000ull /* nanoseconds per millisecond */ --- lib-src/portmidi/porttime/ptmacosx_mach.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib-src/portmidi/porttime/ptmacosx_mach.c b/lib-src/portmidi/porttime/ptmacosx_mach.c index c23210e4d..510964b3e 100644 --- a/lib-src/portmidi/porttime/ptmacosx_mach.c +++ b/lib-src/portmidi/porttime/ptmacosx_mach.c @@ -14,6 +14,7 @@ #include "sys/time.h" #include "pthread.h" +#undef NSEC_PER_MSEC #define NSEC_PER_MSEC 1000000 #define THREAD_IMPORTANCE 30