summaryrefslogtreecommitdiffstats
path: root/kdecompat.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
commitdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch)
tree99e72842fe687baea16376a147619b6048d7e441 /kdecompat.h
downloadkmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz
kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecompat.h')
-rw-r--r--kdecompat.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/kdecompat.h b/kdecompat.h
new file mode 100644
index 0000000..d7c1b0e
--- /dev/null
+++ b/kdecompat.h
@@ -0,0 +1,38 @@
+/***************************************************************************
+ kdecompat.h
+ -------------------
+ copyright : (C) 2004 by Thomas Baumgart
+ email : ipwizard@users.sourceforge.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef _KDECOMPAT_H
+#define _KDECOMPAT_H
+
+#include <kdeversion.h>
+
+#ifndef KDE_MAKE_VERSION
+#define KDE_MAKE_VERSION(a,b,c) (((a)<<16) | ((b)<<8) | (c))
+#endif
+
+#ifndef KDE_IS_VERSION
+#define KDE_IS_VERSION(a,b,c) (KDE_VERSION >= KDE_MAKE_VERSION(a,b,c))
+#endif
+
+#ifndef QT_IS_VERSION
+#define QT_IS_VERSION(a,b,c) (QT_VERSION >= KDE_MAKE_VERSION(a,b,c))
+#endif
+
+#if KDE_VERSION < KDE_MAKE_VERSION(3,2,0)
+#define KDE_DEPRECATED
+#endif
+
+#endif // _KDECOMPAT_H