Added warnings for deprecated .h files
[libcds.git] / cds / lock / spinlock.h
index ae594d32f8f8ba06f5557b445f35cae135281936..519da4595431394421b5315f216df5ea8b5f2e8a 100644 (file)
@@ -3,7 +3,11 @@
 #ifndef CDSLIB_LOCK_SPINLOCK_H
 #define CDSLIB_LOCK_SPINLOCK_H
 
-#warning "cds/lock/spinlock.h is deprecated, use cds/sync/spinlock.h instead"
+#if CDS_COMPILER == CDS_COMPILER_MSVC
+#   pragma message("cds/lock/spinlock.h is deprecated, use cds/sync/spinlock.h instead")
+#else
+#   warning "cds/lock/spinlock.h is deprecated, use cds/sync/spinlock.h instead"
+#endif
 
 #include <cds/sync/spinlock.h>