#ifndef CDSLIB_LOCK_ARRAY_H
#define CDSLIB_LOCK_ARRAY_H
-#warning "cds/lock/array.h is deprecated, use cds/sync/lock_array.h instead"
+#if CDS_COMPILER == CDS_COMPILER_MSVC
+# pragma message("cds/lock/array.h is deprecated, use cds/sync/lock_array.h instead")
+#else
+# warning "cds/lock/array.h is deprecated, use cds/sync/lock_array.h instead"
+#endif
#include <cds/sync/lock_array.h>
#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>