In file included from /usr/include/time.h:27:0,
from /src/projects/ugps/nmea.c:21:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
Signed-off-by: John Crispin <john@phrozen.org>
* Copyright (C) 2014 John Crispin <blogic@openwrt.org>
*/
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#define _XOPEN_SOURCE
#include <time.h>
if (*nmea_params[4].str == 'S')
lat *= -1.0;
if (*nmea_params[6].str == 'W')
- lon *= -1.0;
+ lon *= -1.0;
snprintf(latitude, sizeof(latitude), "%f", lat);
snprintf(longitude, sizeof(longitude), "%f", lon);