blob: 1f30e183addefe30b3139f27d5861eb1d2b03dfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <stdio.h>
#include "dietwarning.h"
#undef setlinebuf
/* there is no previous prototype because it is a #define */
void setlinebuf(FILE* stream);
void setlinebuf(FILE* stream) {
setvbuf(stream,0,_IOLBF,BUFSIZ);
}
link_warning("setlinebuf","warning: you used setlinebuf without including <stdio.h>")
|