Commit 2dda3812f755c63869db6b2176b11a81373aca9e
1 parent
854f68aa
Exists in
master
and in
5 other branches
Ajustes para empacotamento em windows.
Showing
3 changed files
with
15 additions
and
4 deletions
Show diff stats
po/pt_BR.po
@@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
5 | msgstr "" | 5 | msgstr "" |
6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2016-03-21 11:06-0300\n" | 8 | +"POT-Creation-Date: 2016-03-29 14:53-0300\n" |
9 | "PO-Revision-Date: 2014-02-17 08:05-0300\n" | 9 | "PO-Revision-Date: 2014-02-17 08:05-0300\n" |
10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | "Language-Team: Portugues <>\n" | 11 | "Language-Team: Portugues <>\n" |
src/include/lib3270/trace.h
@@ -36,6 +36,12 @@ | @@ -36,6 +36,12 @@ | ||
36 | extern "C" { | 36 | extern "C" { |
37 | #endif | 37 | #endif |
38 | 38 | ||
39 | +#ifdef _WIN32 | ||
40 | + #define LIB3270_AS_PRINTF(a,b) /* __attribute__((format(printf, a, b))) */ | ||
41 | +#else | ||
42 | + #define LIB3270_AS_PRINTF(a,b) __attribute__((format(printf, a, b))) | ||
43 | +#endif | ||
44 | + | ||
39 | typedef void (*LIB3270_TRACE_HANDLER)(H3270 *, const char *, va_list); | 45 | typedef void (*LIB3270_TRACE_HANDLER)(H3270 *, const char *, va_list); |
40 | 46 | ||
41 | 47 | ||
@@ -58,7 +64,7 @@ | @@ -58,7 +64,7 @@ | ||
58 | * @param ... Arguments. | 64 | * @param ... Arguments. |
59 | * | 65 | * |
60 | */ | 66 | */ |
61 | - LIB3270_EXPORT void lib3270_write_dstrace(H3270 *session, const char *fmt, ...) __attribute__((format(printf, 2, 3))); | 67 | + LIB3270_EXPORT void lib3270_write_dstrace(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3); |
62 | 68 | ||
63 | /** | 69 | /** |
64 | * Write on trace file. | 70 | * Write on trace file. |
@@ -69,7 +75,7 @@ | @@ -69,7 +75,7 @@ | ||
69 | * @param ... Arguments. | 75 | * @param ... Arguments. |
70 | * | 76 | * |
71 | */ | 77 | */ |
72 | - LIB3270_EXPORT void lib3270_write_nettrace(H3270 *session, const char *fmt, ...) __attribute__((format(printf, 2, 3))); | 78 | + LIB3270_EXPORT void lib3270_write_nettrace(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3); |
73 | 79 | ||
74 | /** | 80 | /** |
75 | * Write on trace file. | 81 | * Write on trace file. |
@@ -80,7 +86,7 @@ | @@ -80,7 +86,7 @@ | ||
80 | * @param ... Arguments. | 86 | * @param ... Arguments. |
81 | * | 87 | * |
82 | */ | 88 | */ |
83 | - LIB3270_EXPORT void lib3270_trace_event(H3270 *session, const char *fmt, ...) __attribute__((format(printf, 2, 3))); | 89 | + LIB3270_EXPORT void lib3270_trace_event(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3); |
84 | 90 | ||
85 | #ifdef __cplusplus | 91 | #ifdef __cplusplus |
86 | } | 92 | } |
src/plugins/rx3270/pluginmain.cc
@@ -544,6 +544,11 @@ extern "C" | @@ -544,6 +544,11 @@ extern "C" | ||
544 | return lib3270_get_program_message(hSession); | 544 | return lib3270_get_program_message(hSession); |
545 | } | 545 | } |
546 | 546 | ||
547 | + LIB3270_SSL_STATE plugin::get_secure(void) | ||
548 | + { | ||
549 | + return lib3270_get_secure(hSession); | ||
550 | + } | ||
551 | + | ||
547 | int plugin::disconnect(void) | 552 | int plugin::disconnect(void) |
548 | { | 553 | { |
549 | lib3270_disconnect(hSession); | 554 | lib3270_disconnect(hSession); |