1diff -ru a/RtMidi.cpp b/RtMidi.cpp
2--- a/RtMidi.cpp 2021-12-23 16:46:33.000000000 -0500
3+++ b/RtMidi.cpp 2021-12-23 16:48:19.000000000 -0500
4@@ -39,6 +39,9 @@
5
6 #include "RtMidi.h"
7 #include <sstream>
8+#if defined(__APPLE__)
9+#include <TargetConditionals.h>
10+#endif
11
12 #if defined(__MACOSX_CORE__)
13 #if TARGET_OS_IPHONE