#define _GNU_SOURCE #include int getw(FILE *f) { int x; return fread(&x, sizeof x, 1, f) ? x : EOF; } #ifdef TEST int main(void) { return 0; } #endif