00001 /* -------------------------------------------------------------------------- 00002 00003 libmusicbrainz5 - Client library to access MusicBrainz 00004 00005 Copyright (C) 2012 Andrew Hawkins 00006 00007 This file is part of libmusicbrainz5. 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of v2 of the GNU Lesser General Public 00011 License as published by the Free Software Foundation. 00012 00013 libmusicbrainz5 is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this library. If not, see <http://www.gnu.org/licenses/>. 00020 00021 $Id$ 00022 00023 ----------------------------------------------------------------------------*/ 00024 00025 #ifndef _MUSICBRAINZ5_DEFINES_H 00026 #define _MUSICBRAINZ5_DEFINES_H 00027 00028 #if defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) 00029 00030 #define LIBMB5_DEPRECATED(f) __attribute__((deprecated("Use '" #f "' instead"))) 00031 00032 #elif defined(__GNUC__) && __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) 00033 00034 #define LIBMB5_DEPRECATED(f) __attribute__ ((deprecated)) 00035 00036 #else 00037 00038 #define LIBMB5_DEPRECATED(f) 00039 00040 #endif 00041 00042 #endif