Some header work: removed unnecessary dependencies to stage2.h, fixed

some broken C++ export definitions, added missing licenses etc.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3152 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-05-03 16:03:26 +00:00
parent 32439967b9
commit 564cba312e
22 changed files with 140 additions and 191 deletions
+11 -1
View File
@@ -5,7 +5,6 @@
#define _STDIO_H
#include <ktypes.h>
#include <cdefs.h>
#include <stdarg.h>
#ifdef __cplusplus
@@ -127,6 +126,17 @@ extern FILE __sF[];
#define EOF -1
// ToDo: that's only a temporary solution
#ifdef __GNUC__
# define __PRINTFLIKE(__fmt,__varargs) __attribute__((__format__ (__printf__, __fmt, __varargs)))
# define __SCANFLIKE(__fmt,__varargs) __attribute__((__format__ (__scanf__, __fmt, __varargs)))
# define __PURE __attribute__((__const__))
#else
# define __PRINTFLIKE(__fmt,__varargs)
# define __SCANFLIKE(__fmt,__varargs)
# define __PURE
#endif
int printf(char const *format, ...) __PRINTFLIKE(1,2);
int fprintf(FILE *stream, char const *format, ...) __PRINTFLIKE(2,3);
int sprintf(char *str, char const *format, ...) __PRINTFLIKE(2,3);