From f8dc3645fd38767497055fba981b0f5c8c1f9661 Mon Sep 17 00:00:00 2001 From: Robert Norris Date: Sat, 30 Jul 2016 18:08:50 +0000 Subject: Ensure all functions of the client API are available at all times. Thus client programs won't fail to build or run due to missing functions. Although when clientdebug is turned off in building libgps, then these functions won't do anything. Signed-off-by: Gary E. Miller --- libgps_core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libgps_core.c') 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 -- cgit v1.2.1