소스 검색

make sure getw/putw agree with prototypes by defining _GNU_SOURCE

Rich Felker 12 년 전
부모
커밋
98eddc6776
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/stdio/getw.c
  2. 1 0
      src/stdio/putw.c

+ 1 - 0
src/stdio/getw.c

@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 
 int getw(FILE *f)

+ 1 - 0
src/stdio/putw.c

@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <stdio.h>
 
 int putw(int x, FILE *f)