[Marble-commits] KDE/kdeedu/marble/src/lib
Bastian Holst
bastianholst at gmx.de
Sun Jul 11 14:47:05 CEST 2010
SVN commit 1148650 by bholst:
Added define to mark deprecated functions.
M +9 -0 global.h
--- trunk/KDE/kdeedu/marble/src/lib/global.h #1148649:1148650
@@ -234,6 +234,15 @@
class MarbleGlobalPrivate;
class MarbleLocale;
+#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 global.h")
+#define MARBLE_DEPRECATED(func) func
+#endif
+
class MARBLE_EXPORT MarbleGlobal
{
public:
More information about the Marble-commits
mailing list