projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix reversed argument order x86_64 sigsetjmp's call to sigprocmask
[musl]
/
include
/
stdio.h
diff --git
a/include/stdio.h
b/include/stdio.h
index
7d3130e
..
f648801
100644
(file)
--- a/
include/stdio.h
+++ b/
include/stdio.h
@@
-5,11
+5,7
@@
extern "C" {
#endif
extern "C" {
#endif
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
#define __NEED_FILE
#define __NEED_va_list
#define __NEED_FILE
#define __NEED_va_list
@@
-24,12
+20,7
@@
extern "C" {
#include <bits/alltypes.h>
#include <bits/alltypes.h>
-#undef NULL
-#ifdef __cplusplus
-#define NULL 0
-#else
-#define NULL ((void*)0)
-#endif
+#define NULL 0L
#undef EOF
#define EOF (-1)
#undef EOF
#define EOF (-1)
@@
-178,15
+169,12
@@
int ferror_unlocked(FILE *);
int fileno_unlocked(FILE *);
int getw(FILE *);
int putw(int, FILE *);
int fileno_unlocked(FILE *);
int getw(FILE *);
int putw(int, FILE *);
-#endif
-
-#ifdef _BSD_SOURCE
char *fgetln(FILE *, size_t *);
char *fgetln(FILE *, size_t *);
+int asprintf(char **, const char *, ...);
+int vasprintf(char **, const char *, va_list);
#endif
#ifdef _GNU_SOURCE
#endif
#ifdef _GNU_SOURCE
-int asprintf(char **, const char *, ...);
-int vasprintf(char **, const char *, va_list);
char *fgets_unlocked(char *, int, FILE *);
int fputs_unlocked(const char *, FILE *);
#endif
char *fgets_unlocked(char *, int, FILE *);
int fputs_unlocked(const char *, FILE *);
#endif