summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-14 17:50:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-14 17:50:48 -0800
commit06bbf9f4c8a0f99a44363d7ebadc978cf0072cfc (patch)
tree7bf6400155b2763db41d017b94ab232fd1ceef61 /qthelper.h
parent12f422a1a3468d5c29e99bb2c388248680227025 (diff)
downloadsubsurface-06bbf9f4c8a0f99a44363d7ebadc978cf0072cfc.tar.gz
Use C API for printGPSCoords
This way we can call this helper from both C and C++ code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h2
1 files changed, 1 insertions, 1 deletions
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<int> getDivesInTrip(dive_trip_t *trip);
QString gasToStr(struct gasmix gas);