From c8dc39b3cee6567db3d5dd80e8d1218afe06143a Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 17 Oct 2011 14:55:00 +1000 Subject: First step of removal of Q_LOCATION_EXPORT macro from qglobal.h Each module handles each its own exports. We need to change the QtLocation version, remove the qglobal.h define and then add it back under the old name in QtLocation Change-Id: I7530a251b78402215a466cd55a33ec24664786b7 Reviewed-by: Alex --- src/location/qlocationglobal.h | 73 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/location/qlocationglobal.h (limited to 'src/location/qlocationglobal.h') diff --git a/src/location/qlocationglobal.h b/src/location/qlocationglobal.h new file mode 100644 index 00000000..75bef671 --- /dev/null +++ b/src/location/qlocationglobal.h @@ -0,0 +1,73 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the QtLocation module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** GNU Lesser General Public License Usage +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this +** file. Please review the following information to ensure the GNU Lesser +** General Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU General +** Public License version 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of this +** file. Please review the following information to ensure the GNU General +** Public License version 3.0 requirements will be met: +** http://www.gnu.org/copyleft/gpl.html. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ +#ifndef QLOCATIONGLOBAL_H +#define QLOCATIONGLOBAL_H + +#include + +#if defined(Q_OS_WIN) +# if defined(QT_NODLL) +# undef QT_MAKEDLL +# undef QT_DLL +# elif defined(QT_MAKEDLL) +# if defined(QT_DLL) +# undef QT_DLL +# endif +# if defined(QT_BUILD_LOCATION_LIB) +# define Q_LOCATION_EXPORT_TEMP Q_DECL_EXPORT +# else +# define Q_LOCATION_EXPORT_TEMP Q_DECL_IMPORT +# endif +# elif defined(QT_DLL) +# define Q_LOCATION_EXPORT_TEMP Q_DECL_EXPORT +# endif +#endif + +#if !defined(Q_LOCATION_EXPORT_TEMP) +# if defined(QT_SHARED) +# define Q_LOCATION_EXPORT_TEMP Q_DECL_EXPORT +# else +# define Q_LOCATION_EXPORT_TEMP +# endif +#endif + +#endif // QLOCATIONGLOBAL_H + -- cgit v1.2.1