make sure getw/putw agree with prototypes by defining _GNU_SOURCE
[musl] / src / stdio / putw.c
1 #define _GNU_SOURCE
2 #include <stdio.h>
3
4 int putw(int x, FILE *f)
5 {
6         return fwrite(&x, sizeof x, 1, f) ? x : EOF;
7 }