minor but worthwhile optimization in printf: avoid expensive strspn
[musl] / include / stdio.h
index fa1b4e9..3d22220 100644 (file)
@@ -168,6 +168,8 @@ void clearerr_unlocked(FILE *);
 int feof_unlocked(FILE *);
 int ferror_unlocked(FILE *);
 int fileno_unlocked(FILE *);
+int getw(FILE *);
+int putw(int, FILE *);
 #endif
 
 #ifdef _GNU_SOURCE
@@ -177,7 +179,7 @@ char *fgets_unlocked(char *, int, FILE *);
 int fputs_unlocked(const char *, FILE *);
 #endif
 
-#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
 #define tmpfile64 tmpfile
 #define fopen64 fopen
 #define freopen64 freopen