fix detection of liblocation...
[googlelatitude] / src / gps.h
index 42d8841..45c9cbb 100644 (file)
--- a/src/gps.h
+++ b/src/gps.h
@@ -1,13 +1,14 @@
 #ifndef GPS_H
 #define GPS_H
 
-#ifdef Q_WS_MAEMO_5
+#ifdef LIBLOCATION
+
+#include <QObject>
 
 extern "C" {
 #include <location/location-gps-device.h>
 #include <location/location-gpsd-control.h>
 }
-#include <QObject>
 
 class GpsMaemo5 : public QObject {
     Q_OBJECT
@@ -45,8 +46,5 @@ private:
 
 void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
 
-#else
-#include "gpsfake.h"
 #endif
-
 #endif // GPS_H