Revisión | 52 (tree) |
---|---|
Tiempo | 2010-03-24 16:25:48 |
Autor | hirohitohigashi |
slide cplusplus extern brace, including struct LIBOFTP.
@@ -28,6 +28,11 @@ | ||
28 | 28 | |
29 | 29 | |
30 | 30 | /***** Macros ***************************************************************/ |
31 | + | |
32 | +#ifdef __cplusplus | |
33 | +extern "C" { | |
34 | +#endif | |
35 | + | |
31 | 36 | /***** Typedefs *************************************************************/ |
32 | 37 | typedef struct |
33 | 38 | { |
@@ -46,10 +51,6 @@ | ||
46 | 51 | |
47 | 52 | /***** Global variables *****************************************************/ |
48 | 53 | /***** Function prototypes **************************************************/ |
49 | -#ifdef __cplusplus | |
50 | -extern "C" { | |
51 | -#endif | |
52 | - | |
53 | 54 | int ftp_initialize( LIBOFTP *ftp ); |
54 | 55 | int ftp_open( LIBOFTP *ftp, const char *host, int port ); |
55 | 56 | int ftp_user( LIBOFTP *ftp, const char *user, const char *pass ); |