From dddae89af07af57a892f6120675c102d5b69f8ae Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sat, 28 Oct 2017 22:58:26 -0500 Subject: [PATCH] Add prototypes for functions called by macros in . This avoids lint errors when using the setbuf() and rewind() macros. This fixes #42 (libco01.c). --- ORCACDefs/stdio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ORCACDefs/stdio.h b/ORCACDefs/stdio.h index 6305aac..4fc1bc5 100644 --- a/ORCACDefs/stdio.h +++ b/ORCACDefs/stdio.h @@ -106,6 +106,10 @@ typedef long fpos_t; #define setbuf(stream,buf) ((buf==NULL) ? (void) __setvbuf(stream,NULL,_IONBF,0l) : (void) __setvbuf(stream,buf,_IOFBF,(size_t) BUFSIZ)) #define rewind(stream) (__fseek((stream),0L,SEEK_SET)) +/* Private functions used in the above macros (not to be used otherwise) */ +int __setvbuf(FILE *, char *, int, size_t); +int __fseek(FILE *, long, int); + /* * Function declarations */