summaryrefslogtreecommitdiff
path: root/libgpsmm.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgpsmm.h')
-rw-r--r--libgpsmm.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libgpsmm.h b/libgpsmm.h
index ab57a286..e3f99497 100644
--- a/libgpsmm.h
+++ b/libgpsmm.h
@@ -32,13 +32,8 @@ class LIBQGPSMMSHARED_EXPORT gpsmm {
private:
struct gps_data_t *to_user; //we return the user a copy of the internal structure. This way she can modify it without
//integrity loss for the entire class
- #if GPSD_API_MAJOR_VERSION < 5
- struct gps_data_t *_gps_data;
- struct gps_data_t * gps_data() { return _gps_data; }
- #else
- struct gps_data_t _gps_data;
- struct gps_data_t * gps_data() { return &_gps_data; }
- #endif
+ struct gps_data_t _gps_data;
+ struct gps_data_t * gps_data() { return &_gps_data; }
struct gps_data_t* backup(void) { *to_user=*gps_data(); return to_user;}; //return the backup copy
};
#endif // _GPSD_GPSMM_H_