summaryrefslogtreecommitdiff
path: root/libsowatch/sowatch_global.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/sowatch_global.h')
-rw-r--r--libsowatch/sowatch_global.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libsowatch/sowatch_global.h b/libsowatch/sowatch_global.h
index 1afa590..c317ba4 100644
--- a/libsowatch/sowatch_global.h
+++ b/libsowatch/sowatch_global.h
@@ -2,17 +2,20 @@
#define SOWATCH_GLOBAL_H
#include <QtCore/qglobal.h>
+#include <qplatformdefs.h>
#if defined(SOWATCH_LIBRARY)
-# define SOWATCH_EXPORT Q_DECL_EXPORT
+# define SOWATCH_EXPORT Q_DECL_EXPORT
#else
-# define SOWATCH_EXPORT Q_DECL_IMPORT
+# define SOWATCH_EXPORT Q_DECL_IMPORT
#endif
-#if defined(Q_WS_MAEMO_5)
-# define SOWATCH_PLUGINS_DIR "/opt/sowatch"
+#if defined(MEEGO_VERSION_MAJOR) || defined(Q_WS_MAEMO_5)
+# define SOWATCH_PLUGINS_DIR "/opt/sowatch/lib"
#elif defined(Q_OS_LINUX)
-# define SOWATCH_PLUGINS_DIR "/usr/lib/sowatch"
+# define SOWATCH_PLUGINS_DIR "/usr/lib/sowatch"
+#else
+# error Please define a path for your platform
#endif
#define SOWATCH_DRIVERS_DIR SOWATCH_PLUGINS_DIR "/drivers"