fix compilation in gcc

This commit is contained in:
mek_x 2014-04-23 20:36:26 +02:00
parent 5d49c07957
commit 116fb82670
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
# the terms of the Do What The Fuck You Want To Public License, Version 2, as # 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. # 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 LDFLAGS = -lcheck
all: scan-build test example all: scan-build test example

View File

@ -9,6 +9,8 @@
#ifndef MINMEA_H #ifndef MINMEA_H
#define MINMEA_H #define MINMEA_H
#define _BSD_SOURCE
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif