fix pthread-windows semaphore detection
[ardour.git] / libs / pbd / pbd / semaphore.h
index 5f0a2df2c0023a9304e39c97edfa371b6560b835..265a219e079b1e061167d924468a5f97ebda1914 100644 (file)
 #    include <mach/mach.h>
 #elif defined(PLATFORM_WINDOWS)
 #    include <windows.h>
+#ifndef INFINITE
+#define INFINITE 0xffffffffL
+#endif
 #else
 #    include <semaphore.h>
 #    include <errno.h>
 #endif
 
+#include "pbd/libpbd_visibility.h"
 #include "pbd/failed_constructor.h"
 
 namespace PBD {
@@ -45,7 +49,7 @@ namespace PBD {
    only safe way to reliably signal from a real-time audio thread.  The
    counting semantics also complement ringbuffers of events nicely.
 */
-class Semaphore
+class /*LIBPBD_API*/ Semaphore
 {
 public:
        /**