marble_export.h 851 Bytes
Newer Older
Christian Ehrlicher's avatar
Christian Ehrlicher committed
1
//
2
// This file is part of the Marble Virtual Globe.
Christian Ehrlicher's avatar
Christian Ehrlicher committed
3 4 5 6 7
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
8
// Copyright 2007      Christian Ehrlicher <ch.ehrlicher@gmx.de>
Christian Ehrlicher's avatar
Christian Ehrlicher committed
9 10 11 12 13
//

#ifndef MARBLE_EXPORT_H
#define MARBLE_EXPORT_H

14
#include <QtGlobal>
Christian Ehrlicher's avatar
Christian Ehrlicher committed
15 16 17 18 19 20 21 22 23

#ifndef MARBLE_EXPORT
# ifdef MAKE_MARBLE_LIB
#  define MARBLE_EXPORT Q_DECL_EXPORT
# else
#  define MARBLE_EXPORT Q_DECL_IMPORT
# endif
#endif

24 25 26 27 28 29 30 31 32
#ifdef __GNUC__
#define MARBLE_DEPRECATED(func) func __attribute__ ((deprecated))
#elif defined(_MSC_VER)
#define MARBLE_DEPRECATED(func) __declspec(deprecated) func
#else
#pragma message("WARNING: You need to implement MARBLE_DEPRECATED for this compiler in marble_export.h")
#define MARBLE_DEPRECATED(func) func
#endif

Christian Ehrlicher's avatar
Christian Ehrlicher committed
33
#endif // MARBLE_EXPORT_H