Don't repeat inclusion of stdio.h
Use Fflush() macro to allow for OS-specific overrides
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
-#include <stdio.h>
typedef int SysRet;
typedef FILE * InputStream;
OutputStream handle
CODE:
if (handle)
- RETVAL = fflush(handle);
+ RETVAL = Fflush(handle);
else {
RETVAL = -1;
errno = EINVAL;