deprecated fix for gcc (requires 4.0+)
This commit is contained in:
parent
6e78b6b824
commit
e802a74ecb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue