fix detection of liblocation...
[googlelatitude] / src / gps.h
index e3de44a..45c9cbb 100644 (file)
--- a/src/gps.h
+++ b/src/gps.h
@@ -1,11 +1,14 @@
 #ifndef GPS_H
 #define GPS_H
 
+#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
@@ -43,4 +46,5 @@ private:
 
 void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps);
 
+#endif
 #endif // GPS_H