Soprano  2.9.2
sopranomacros.h
Go to the documentation of this file.
1 /* This file is part of Soprano
2  *
3  * Copyright (C) 2008 Sebastian Trueg <trueg@kde.org>
4  *
5  * Macros in this file are based on macros from KDE's kdemacros.h
6  * Copyright (c) 2002-2003 KDE Team
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public License
19  * along with this library; see the file COPYING.LIB. If not, write to
20  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
32 #ifndef _SOPRANO_MACROS_H_
33 #define _SOPRANO_MACROS_H_
34 
35 #ifdef __cplusplus
36 # include <QtCore/qglobal.h>
37 # ifndef SOPRANO_DEPRECATED
38 # define SOPRANO_DEPRECATED Q_DECL_DEPRECATED
39 # endif
40 #endif
41 
42 #ifndef SOPRANO_CONSTRUCTOR_DEPRECATED
43 # ifdef __GNUC__
44 # if __GNUC__ == 3 && __GNUC_MINOR__ <= 3
45  /* GCC 3.3.x cannot handle Qt 4.1.2's definition of Q_DECL_CONSTRUCTOR_DEPRECATED */
46 # define SOPRANO_CONSTRUCTOR_DEPRECATED
47 # else
48 # define SOPRANO_CONSTRUCTOR_DEPRECATED Q_DECL_CONSTRUCTOR_DEPRECATED
49 # endif
50 # else
51 # define SOPRANO_CONSTRUCTOR_DEPRECATED Q_DECL_CONSTRUCTOR_DEPRECATED
52 # endif
53 #endif
54 
55 
56 #endif