deprecated fix for gcc (requires 4.0+)

This commit is contained in:
Arvid Norberg 2007-08-11 15:12:21 +00:00
parent 6e78b6b824
commit e802a74ecb
1 changed files with 5 additions and 6 deletions

View File

@ -35,14 +35,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/config.hpp>
#if defined(__GNUC__)
#define TORRENT_DEPRECATED __attribute__ ((deprecated))
#else
#define TORRENT_DEPRECATED
#endif
#if defined(__GNUC__) && __GNUC__ >= 4
#define TORRENT_DEPRECATED __attribute__ ((deprecated))
# if defined(TORRENT_BUILDING_SHARED) || defined(TORRENT_LINKING_SHARED)
# define TORRENT_EXPORT __attribute__ ((visibility("default")))
# else
@ -67,6 +63,9 @@ POSSIBILITY OF SUCH DAMAGE.
# define TORRENT_EXPORT
#endif
#ifndef TORRENT_DEPRECATED
#define TORRENT_DEPRECATED
#endif
#endif // TORRENT_CONFIG_HPP_INCLUDED