changeset 134:5f88f517b637

Error if no thread implementation selected
author Chris Cannam
date Wed, 16 Oct 2013 13:29:00 +0100
parents ef42b60d0100
children 0fdbb93e92b7
files thread/Thread.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/thread/Thread.h	Wed Oct 16 12:52:44 2013 +0100
+++ b/thread/Thread.h	Wed Oct 16 13:29:00 2013 +0100
@@ -15,6 +15,8 @@
 #else /* !_WIN32 */
 #ifdef USE_PTHREADS
 #include <pthread.h>
+#else
+#error Must have either _WIN32 or USE_PTHREADS defined
 #endif /* USE_PTHREADS */
 #endif /* !_WIN32 */