diff options
author | 2016-09-06 19:56:36 +0000 | |
---|---|---|
committer | 2016-09-06 19:56:36 +0000 | |
commit | 02cde8906b0cb388f39a2c3520f1da593b271c22 (patch) | |
tree | beddaf9be276a42f920b2eec58c621fcdc56f102 /lib/libc/hidden/stdio.h | |
parent | zap bha, hiding outside dev/ tree (diff) | |
download | wireguard-openbsd-02cde8906b0cb388f39a2c3520f1da593b271c22.tar.xz wireguard-openbsd-02cde8906b0cb388f39a2c3520f1da593b271c22.zip |
Make sure attributes are applied to function declarations before they're
used or defined, as clang isn't as forgiving as gcc. Also, declare
__flt_rounds() so that libc can build it despire clang providing its own
<float.h>
ok stefan@ kettenis@
Diffstat (limited to 'lib/libc/hidden/stdio.h')
-rw-r--r-- | lib/libc/hidden/stdio.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/hidden/stdio.h b/lib/libc/hidden/stdio.h index 1240a3a0bf3..6b03f7ac54e 100644 --- a/lib/libc/hidden/stdio.h +++ b/lib/libc/hidden/stdio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdio.h,v 1.6 2016/05/07 19:05:22 guenther Exp $ */ +/* $OpenBSD: stdio.h,v 1.7 2016/09/06 19:56:36 guenther Exp $ */ /* * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> * @@ -18,6 +18,11 @@ #ifndef _LIBC_STDIO_H_ #define _LIBC_STDIO_H_ +/* Rename __swbuf() before it's used in the inline __sputc() */ +struct __sFILE; +int __swbuf(int, struct __sFILE *); +PROTO_NORMAL(__swbuf); + /* we want the const-correct declarations inside libc */ #define __SYS_ERRLIST @@ -36,7 +41,6 @@ extern PROTO_NORMAL(sys_errlist); #endif PROTO_NORMAL(__srget); -PROTO_NORMAL(__swbuf); PROTO_NORMAL(asprintf); PROTO_NORMAL(clearerr); PROTO_NORMAL(ctermid); |