Add compilation warning about MT and ST_THREADS
authorFilippos Giannakos <philipgian@grnet.gr>
Thu, 14 Mar 2013 11:41:24 +0000 (13:41 +0200)
committerFilippos Giannakos <philipgian@grnet.gr>
Thu, 14 Mar 2013 16:00:21 +0000 (18:00 +0200)
xseg/peers/user/peer.c

index 7212865..c0a0dd5 100644 (file)
 #include <peer.h>
 
 #ifdef MT
+#ifdef ST_THREADS
+#error "MT and ST_THREADS defines are mutually exclusive"
+#endif
+#endif
+
+#ifdef MT
 #define PEER_TYPE "pthread"
 #else
 #define PEER_TYPE "posix"