GUSI: Fix prototype for fdopen() to work with CW Pro 6.1

This commit is contained in:
Brendan Shanks 2017-03-10 22:52:59 -08:00
parent 8b4aee054c
commit 60d4a82204
1 changed files with 6 additions and 2 deletions

View File

@ -120,13 +120,17 @@ int creat __P((const char *, ...));
int fcntl __P((int, int, ...));
/* This properly belongs into stdio.h, but that header is outside of
GUSI's control
GUSI's control.
Metrowerks switched to a POSIX compliant declaration in CW Pro 7
*/
#if defined(__MWERKS__) && __MWERKS__ < 0x2401 && !defined(_SFSTDIO_H)
#ifndef _SFSTDIO_H
#if defined(__MWERKS__) && __MSL__ < 0x7000
FILE * fdopen(int fildes, char *type);
#else
FILE * fdopen(int fildes, const char *type);
#endif
#endif
__END_DECLS
#endif /* !_FCNTL_H_ */