From 0a1b13f791a6fa0965207deb44c3c67ff3deaf23 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 2 Feb 2011 14:21:20 -0500 Subject: Simplify the C++ lib, noo point in supporting the old API now. --- libgpsmm.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libgpsmm.h') 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_ -- cgit v1.2.1