libmoost
|
00001 /* vim:set ts=3 sw=3 sts=3 et: */ 00036 #ifndef MOOST_COMPILER_ATTRIBUTES_DEPRECATED_HPP__ 00037 #define MOOST_COMPILER_ATTRIBUTES_DEPRECATED_HPP__ 00038 00092 #if defined( __GNUC__ ) 00093 00094 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 00095 // Deprecated attribute support for gcc 00096 #define deprecated__ __attribute__ ((deprecated)) 00097 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 00098 00099 #elif defined ( _MSC_VER ) 00100 00101 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 00102 // Deprecated attribute support for Visual Studio 00103 #define deprecated__ __declspec(deprecated("is deprecated")) 00104 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 00105 00106 #else 00107 00108 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 00109 // Unknown compiler - do the best we can 00110 pragma_warning__("item is deprecated") 00111 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 00112 00113 #endif 00114 00115 #endif