From 116fb8267098258d9685eda6536283d3afcf8c81 Mon Sep 17 00:00:00 2001 From: mek_x Date: Wed, 23 Apr 2014 20:36:26 +0200 Subject: [PATCH] fix compilation in gcc --- Makefile | 2 +- minmea.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7c2cf7a..38c8704 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # the terms of the Do What The Fuck You Want To Public License, Version 2, as # published by Sam Hocevar. See the COPYING file for more details. -CFLAGS = -g -Wall -Wextra -Werror +CFLAGS = -g -Wall -Wextra -Werror -std=c99 LDFLAGS = -lcheck all: scan-build test example diff --git a/minmea.h b/minmea.h index 1caa0b3..8fab9c0 100644 --- a/minmea.h +++ b/minmea.h @@ -9,6 +9,8 @@ #ifndef MINMEA_H #define MINMEA_H +#define _BSD_SOURCE + #ifdef __cplusplus extern "C" { #endif