Added warnings for deprecated .h files
authorkhizmax <libcds.dev@gmail.com>
Sat, 31 Jan 2015 15:24:34 +0000 (18:24 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sat, 31 Jan 2015 15:24:34 +0000 (18:24 +0300)
cds/lock/array.h
cds/lock/spinlock.h

index d3376cc9d8e88a9de3dfb6658ac1f761a667176b..c75e7a66625f73d1fb8bfc9940a53424144c9f1b 100644 (file)
@@ -3,7 +3,11 @@
 #ifndef __CDS_LOCK_ARRAY_H
 #define __CDS_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>
 
index da1b68685056f9bf2da9121d265b1e04e52e6a25..eb127e8ccf949b6849086af7157a14d03025dd67 100644 (file)
@@ -3,7 +3,11 @@
 #ifndef __CDS_LOCK_SPINLOCK_H
 #define __CDS_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>