#ifndef __pbd_semutils_h__
#define __pbd_semutils_h__
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
#include <windows.h>
#else
#include <semaphore.h>
#endif
+#include "pbd/libpbd_visibility.h"
+
namespace PBD {
-class ProcessSemaphore {
+class LIBPBD_API ProcessSemaphore {
private:
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
HANDLE _sem;
#elif __APPLE__
ProcessSemaphore (const char* name, int val);
~ProcessSemaphore ();
-#ifdef WIN32
+#ifdef PLATFORM_WINDOWS
int signal ();
int wait ();