changeset 359:0ea56b09577e

Error if no thread implementation selected
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 16 Oct 2013 13:29:00 +0100
parents 7a225d665ed2
children a694700f71d8
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 */