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~307 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=79c491e2945cf5900a6146dd8f5be8db48b83de9;p=libcds.git Added warnings for deprecated .h files --- diff --git a/cds/lock/array.h b/cds/lock/array.h index d3376cc9..c75e7a66 100644 --- a/cds/lock/array.h +++ b/cds/lock/array.h @@ -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 diff --git a/cds/lock/spinlock.h b/cds/lock/spinlock.h index da1b6868..eb127e8c 100644 --- a/cds/lock/spinlock.h +++ b/cds/lock/spinlock.h @@ -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