diff --git a/po/pt_BR.po b/po/pt_BR.po index afd7761..a0775d1 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-03-21 11:06-0300\n" +"POT-Creation-Date: 2016-03-29 14:53-0300\n" "PO-Revision-Date: 2014-02-17 08:05-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Portugues <>\n" diff --git a/src/include/lib3270/trace.h b/src/include/lib3270/trace.h index 549eddd..576c01a 100644 --- a/src/include/lib3270/trace.h +++ b/src/include/lib3270/trace.h @@ -36,6 +36,12 @@ extern "C" { #endif +#ifdef _WIN32 + #define LIB3270_AS_PRINTF(a,b) /* __attribute__((format(printf, a, b))) */ +#else + #define LIB3270_AS_PRINTF(a,b) __attribute__((format(printf, a, b))) +#endif + typedef void (*LIB3270_TRACE_HANDLER)(H3270 *, const char *, va_list); @@ -58,7 +64,7 @@ * @param ... Arguments. * */ - LIB3270_EXPORT void lib3270_write_dstrace(H3270 *session, const char *fmt, ...) __attribute__((format(printf, 2, 3))); + LIB3270_EXPORT void lib3270_write_dstrace(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3); /** * Write on trace file. @@ -69,7 +75,7 @@ * @param ... Arguments. * */ - LIB3270_EXPORT void lib3270_write_nettrace(H3270 *session, const char *fmt, ...) __attribute__((format(printf, 2, 3))); + LIB3270_EXPORT void lib3270_write_nettrace(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3); /** * Write on trace file. @@ -80,7 +86,7 @@ * @param ... Arguments. * */ - LIB3270_EXPORT void lib3270_trace_event(H3270 *session, const char *fmt, ...) __attribute__((format(printf, 2, 3))); + LIB3270_EXPORT void lib3270_trace_event(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3); #ifdef __cplusplus } diff --git a/src/plugins/rx3270/pluginmain.cc b/src/plugins/rx3270/pluginmain.cc index b3b4003..ccdc3b4 100644 --- a/src/plugins/rx3270/pluginmain.cc +++ b/src/plugins/rx3270/pluginmain.cc @@ -544,6 +544,11 @@ extern "C" return lib3270_get_program_message(hSession); } + LIB3270_SSL_STATE plugin::get_secure(void) + { + return lib3270_get_secure(hSession); + } + int plugin::disconnect(void) { lib3270_disconnect(hSession); -- libgit2 0.21.2