r308@gandalf: fugalh | 2006-08-11 08:49:54 -0600
authorHans Fugal <hans@fugal.net>
Fri, 11 Aug 2006 15:24:49 +0000 (15:24 +0000)
committerHans Fugal <hans@fugal.net>
Fri, 11 Aug 2006 15:24:49 +0000 (15:24 +0000)
 OS X MacTypes.h/libgnomecanvasmm Rect problem workaround when COREAUDIO=0

git-svn-id: svn://localhost/ardour2/branches/undo@788 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/cycles.h

index f194988da95043a68483613e13e3e0ef677c383a..ad3e5126690471aee915459af4e2f45fed2282c1 100644 (file)
@@ -186,8 +186,19 @@ static inline cycles_t get_cycles (void)
 
 /* begin mach */
 #elif defined(__APPLE__)
-#include <CoreAudio/CoreAudioTypes.h>
+
+#ifdef HAVE_COREAUDIO
 #include <CoreAudio/HostTime.h>
+#else // Due to MacTypes.h and libgnomecanvasmm Rect conflict
+typedef unsigned long long              UInt64;
+
+extern UInt64
+AudioGetCurrentHostTime();
+
+extern UInt64
+AudioConvertHostTimeToNanos(UInt64 inHostTime);
+#endif
+
 typedef UInt64 cycles_t;
 static inline cycles_t get_cycles (void)
 {