headers: Get glibc <libio.h> out of the default include path.
It's needed by GCC2 stdc++, but we shouldn't be including it for all consumers of <stdio.h>, which we were. Drop it, and adjust all the things that were relying on <stdio_pre.h>'s definition of __PRINTFLIKE to use the _PRINTFLIKE defined in BeBuild.h instead. Hopefully should not cause any breakage; the libroot implementation of __freading depended on this, but I didn't see anything else which did.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
|
||||
|
||||
#include <module.h>
|
||||
#include <stdio.h>
|
||||
|
||||
struct kernel_args;
|
||||
|
||||
@@ -32,8 +31,8 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
int con_init(struct kernel_args *args);
|
||||
void kprintf(const char *fmt, ...) __PRINTFLIKE(1,2);
|
||||
void kprintf_xy(int x, int y, const char *fmt, ...) __PRINTFLIKE(3,4);
|
||||
void kprintf(const char *fmt, ...) _PRINTFLIKE(1,2);
|
||||
void kprintf_xy(int x, int y, const char *fmt, ...) _PRINTFLIKE(3,4);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user