From 06bbf9f4c8a0f99a44363d7ebadc978cf0072cfc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 14 Feb 2015 17:50:48 -0800 Subject: Use C API for printGPSCoords This way we can call this helper from both C and C++ code. Signed-off-by: Dirk Hohndel --- qthelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qthelper.h') diff --git a/qthelper.h b/qthelper.h index ccc57bc93..a367a9dac 100644 --- a/qthelper.h +++ b/qthelper.h @@ -13,7 +13,7 @@ extern QTranslator *qtTranslator, *ssrfTranslator; QString weight_string(int weight_in_grams); bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out = 0); -QString printGPSCoords(int lat, int lon); +extern "C" const char *printGPSCoords(int lat, int lon); QList getDivesInTrip(dive_trip_t *trip); QString gasToStr(struct gasmix gas); -- cgit v1.2.3-70-g09d2