mirror of https://github.com/macssh/macssh.git
GUSI: Fix prototype for fdopen() to work with CW Pro 6.1
This commit is contained in:
parent
8b4aee054c
commit
60d4a82204
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue