make sure getw/putw agree with prototypes by defining _GNU_SOURCE
This commit is contained in:
parent
25b88f0810
commit
98eddc6776
2 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int getw(FILE *f)
|
int getw(FILE *f)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int putw(int x, FILE *f)
|
int putw(int x, FILE *f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue