support to no liblocation
[googlelatitude] / src / gps.h
index e3de44a..42d8841 100644 (file)
--- a/src/gps.h
+++ b/src/gps.h
@@ -1,6 +1,8 @@
 #ifndef GPS_H
 #define GPS_H
 
+#ifdef Q_WS_MAEMO_5
+
 extern "C" {
 #include <location/location-gps-device.h>
 #include <location/location-gpsd-control.h>
@@ -43,4 +45,8 @@ private:
 
 void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
 
+#else
+#include "gpsfake.h"
+#endif
+
 #endif // GPS_H