소스 검색

fix compilation in gcc

mek_x 11 년 전
부모
커밋
116fb82670
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Makefile
  2. 2 0
      minmea.h

+ 1 - 1
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

+ 2 - 0
minmea.h

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