summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgps_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 582e2105..ca580bd1 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -49,6 +49,10 @@ void libgps_trace(int errlevel, const char *fmt, ...)
(void)fputs(buf, debugfp);
}
}
+#else
+// Functions defined as so to furfil the API but otherwise do nothing when built with debug capability turned off
+void gps_enable_debug(int level UNUSED, FILE * fp UNUSED) {}
+void libgps_trace(int errlevel UNUSED, const char *fmt UNUSED, ...){}
#endif /* LIBGPS_DEBUG */
#ifdef SOCKET_EXPORT_ENABLE