diff options
Diffstat (limited to 'libs/qm-dsp/thread/Thread.h')
-rw-r--r-- | libs/qm-dsp/thread/Thread.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/qm-dsp/thread/Thread.h b/libs/qm-dsp/thread/Thread.h index e26f452430..cd5489d379 100644 --- a/libs/qm-dsp/thread/Thread.h +++ b/libs/qm-dsp/thread/Thread.h @@ -13,8 +13,11 @@ #ifdef _WIN32 #include <windows.h> #else /* !_WIN32 */ +#define USE_PTHREADS #ifdef USE_PTHREADS #include <pthread.h> +#else +#error Must have either _WIN32 or USE_PTHREADS defined #endif /* USE_PTHREADS */ #endif /* !_WIN32 */ @@ -127,7 +130,7 @@ public: void wait(int us = 0); void signal(); - + private: #ifdef _WIN32 |