Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/getw.c')
-rw-r--r--newlib/libc/stdio/getw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/newlib/libc/stdio/getw.c b/newlib/libc/stdio/getw.c
index b6fd87313..b5065bd53 100644
--- a/newlib/libc/stdio/getw.c
+++ b/newlib/libc/stdio/getw.c
@@ -54,14 +54,15 @@ Supporting OS subroutines required: <<fread>>. */
static char sccsid[] = "%W% (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
+#include <_ansi.h>
#include <stdio.h>
int
-getw (fp)
- register FILE *fp;
+_DEFUN(getw, (fp),
+ register FILE *fp)
{
int result;
- if (fread((char*)&result, sizeof(result), 1, fp) != 1)
+ if (fread ((char*)&result, sizeof (result), 1, fp) != 1)
return EOF;
return result;
}