From: khizmax Date: Sat, 31 Jan 2015 15:24:34 +0000 (+0300) Subject: Added warnings for deprecated .h files X-Git-Tag: v2.1.0~305^2~85 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=313649f445d59bf1c6f54225e5cdb81c602d5523;p=libcds.git Added warnings for deprecated .h files --- diff --git a/cds/lock/array.h b/cds/lock/array.h index fd87a2db..0773e3fb 100644 --- a/cds/lock/array.h +++ b/cds/lock/array.h @@ -3,7 +3,11 @@ #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 diff --git a/cds/lock/spinlock.h b/cds/lock/spinlock.h index ae594d32..519da459 100644 --- a/cds/lock/spinlock.h +++ b/cds/lock/spinlock.h @@ -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