diff options
Diffstat (limited to 'libgpsmm.h')
-rw-r--r-- | libgpsmm.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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_ |