diff options
author | Miles Bader <miles@gnu.org> | 1997-09-04 21:18:26 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-09-04 21:18:26 +0000 |
commit | b68e5d04289c6113970ba82741ea975659eacf8f (patch) | |
tree | 7fc237c95be531100a91677605e22d2f13e9e913 | |
parent | 158fc0086cd6e34578ae52188d0ebb03dc85e10d (diff) |
[!FTP_CONN_EI] (FTP_CONN_EI):
New macro.
(ftp_conn_validate_syshooks):
Use FTP_CONN_EI instead of `static inline'.
Protect with __OPTIMIZE__.
-rw-r--r-- | libftpconn/ftpconn.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libftpconn/ftpconn.h b/libftpconn/ftpconn.h index 9c0575df..c4172ffe 100644 --- a/libftpconn/ftpconn.h +++ b/libftpconn/ftpconn.h @@ -35,6 +35,10 @@ typedef int error_t; #define __error_t_defined #endif +#ifndef FTP_CONN_EI +# define FTP_CONN_EI extern inline +#endif + struct ftp_conn; struct ftp_conn_params; struct ftp_conn_stat; @@ -234,9 +238,10 @@ error_t ftp_conn_open (struct ftp_conn *conn); void ftp_conn_close (struct ftp_conn *conn); +#ifdef __OPTIMIZE__ /* Makes sure that CONN's syshooks are set according to the remote system type. */ -static inline error_t +FTP_CONN_EI error_t ftp_conn_validate_syshooks (struct ftp_conn *conn) { if (conn->syshooks_valid) @@ -245,6 +250,7 @@ ftp_conn_validate_syshooks (struct ftp_conn *conn) /* Opening the connection should set the syshooks. */ return ftp_conn_open (conn); } +#endif /* __OPTIMIZE__ */ /* Create a new ftp connection as specified by PARAMS, and return it in CONN; HOOKS contains customization hooks used by the connection. Neither PARAMS |