Commit 18bdb86f3dc1e0b8eaff48a01d454962b3c184d9
1 parent
836c1304
Exists in
master
and in
5 other branches
Ocultando mensagems de deprecated do gtk
Showing
6 changed files
with
17 additions
and
25 deletions
Show diff stats
configure.ac
@@ -101,6 +101,7 @@ AC_SUBST(PACKAGE_LEVEL,"APP_LEVEL") | @@ -101,6 +101,7 @@ AC_SUBST(PACKAGE_LEVEL,"APP_LEVEL") | ||
101 | 101 | ||
102 | #--[ Set host based options ]--------------------------------------------------------------------------------------------------------------------------------- | 102 | #--[ Set host based options ]--------------------------------------------------------------------------------------------------------------------------------- |
103 | 103 | ||
104 | +CFLAGS="$CFLAGS -Wno-deprecated-declarations" | ||
104 | DLL_CFLAGS="" | 105 | DLL_CFLAGS="" |
105 | DLL_FLAGS="-shared" | 106 | DLL_FLAGS="-shared" |
106 | SYSDLL_FLAGS="-shared" | 107 | SYSDLL_FLAGS="-shared" |
@@ -215,8 +216,8 @@ rm -f conftest.$ac_objext conftest.err m4_ifval([$1], [conftest.$ac_ext])[]dnl | @@ -215,8 +216,8 @@ rm -f conftest.$ac_objext conftest.err m4_ifval([$1], [conftest.$ac_ext])[]dnl | ||
215 | AC_MSG_CHECKING(for GNUC visibility attribute) | 216 | AC_MSG_CHECKING(for GNUC visibility attribute) |
216 | GLIB_CHECK_COMPILE_WARNINGS([AC_LANG_SOURCE([ | 217 | GLIB_CHECK_COMPILE_WARNINGS([AC_LANG_SOURCE([ |
217 | 218 | ||
218 | -#define LIB3270_INTERNAL extern __attribute__((visibility("hidden"))) | ||
219 | -#define LIB3270_EXPORT extern __attribute__((visibility("default"))) | 219 | +#define LIB3270_INTERNAL __attribute__((visibility("hidden"))) extern |
220 | +#define LIB3270_EXPORT __attribute__((visibility("default"))) extern | ||
220 | 221 | ||
221 | LIB3270_INTERNAL void f_hidden(void); | 222 | LIB3270_INTERNAL void f_hidden(void); |
222 | LIB3270_EXPORT void f_export(void); | 223 | LIB3270_EXPORT void f_export(void); |
src/include/lib3270.h
@@ -296,13 +296,13 @@ | @@ -296,13 +296,13 @@ | ||
296 | 296 | ||
297 | #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) | 297 | #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) |
298 | 298 | ||
299 | - #define LIB3270_INTERNAL extern | 299 | + #define LIB3270_INTERNAL __hidden extern |
300 | #define LIB3270_EXPORT extern | 300 | #define LIB3270_EXPORT extern |
301 | 301 | ||
302 | #elif defined (HAVE_GNUC_VISIBILITY) | 302 | #elif defined (HAVE_GNUC_VISIBILITY) |
303 | 303 | ||
304 | - #define LIB3270_INTERNAL extern __attribute__((visibility("hidden"))) | ||
305 | - #define LIB3270_EXPORT extern __attribute__((visibility("default"))) | 304 | + #define LIB3270_INTERNAL __attribute__((visibility("hidden"))) extern |
305 | + #define LIB3270_EXPORT __attribute__((visibility("default"))) extern | ||
306 | 306 | ||
307 | #else | 307 | #else |
308 | 308 |
src/java/Makefile.in
@@ -78,7 +78,7 @@ include $(CLASSLIBDIR)/class.mak | @@ -78,7 +78,7 @@ include $(CLASSLIBDIR)/class.mak | ||
78 | 78 | ||
79 | #---[ Build options ]---------------------------------------------------------- | 79 | #---[ Build options ]---------------------------------------------------------- |
80 | 80 | ||
81 | -CXXFLAGS=@CXXFLAGS@ @DLL_CFLAGS@ @JNI_CPPFLAGS@ -I../include | 81 | +CXXFLAGS=@CFLAGS@ @CXXFLAGS@ @DLL_CFLAGS@ @JNI_CPPFLAGS@ -I../include |
82 | 82 | ||
83 | PW3270_LIBS ?= -L../../.bin/Debug@DLLDIR@ -l3270 -lpw3270 | 83 | PW3270_LIBS ?= -L../../.bin/Debug@DLLDIR@ -l3270 -lpw3270 |
84 | PW3270_CFLAGS ?= -I../include | 84 | PW3270_CFLAGS ?= -I../include |
src/lib3270/ft.c
@@ -349,9 +349,9 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | @@ -349,9 +349,9 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | ||
349 | 349 | ||
350 | /* Build the ind$file command */ | 350 | /* Build the ind$file command */ |
351 | snprintf(op,4095,"%s%s%s", | 351 | snprintf(op,4095,"%s%s%s", |
352 | - (ft->flags & LIB3270_FT_OPTION_ASCII) ? " ascii" : "", | ||
353 | - (ft->flags & LIB3270_FT_OPTION_CRLF) ? " crlf" : "", | ||
354 | - (ft->flags & LIB3270_FT_OPTION_APPEND) ? " append" : "" | 352 | + (ft->flags & LIB3270_FT_OPTION_ASCII) ? " ASCII" : "", |
353 | + (ft->flags & LIB3270_FT_OPTION_CRLF) ? " CRLF" : "", | ||
354 | + (ft->flags & LIB3270_FT_OPTION_APPEND) ? " APPEND" : "" | ||
355 | ); | 355 | ); |
356 | 356 | ||
357 | trace("tso=%s",hSession->options & LIB3270_OPTION_TSO ? "yes" : "No"); | 357 | trace("tso=%s",hSession->options & LIB3270_OPTION_TSO ? "yes" : "No"); |
@@ -365,13 +365,13 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | @@ -365,13 +365,13 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | ||
365 | // TSO Host | 365 | // TSO Host |
366 | if(recfm > 0) | 366 | if(recfm > 0) |
367 | { | 367 | { |
368 | - snconcat(op,4096," recfm(%c)",rec[recfm-1]); | 368 | + snconcat(op,4096," RECFM(%c)",rec[recfm-1]); |
369 | 369 | ||
370 | if(ft->lrecl > 0) | 370 | if(ft->lrecl > 0) |
371 | - snconcat(op,4096," lrecl(%d)",ft->lrecl); | 371 | + snconcat(op,4096," LRECL(%d)",ft->lrecl); |
372 | 372 | ||
373 | if(ft->blksize > 0) | 373 | if(ft->blksize > 0) |
374 | - snconcat(op,4096," blksize(%d)", ft->blksize); | 374 | + snconcat(op,4096," BLKSIZE(%d)", ft->blksize); |
375 | } | 375 | } |
376 | 376 | ||
377 | if(units > 0) | 377 | if(units > 0) |
@@ -380,7 +380,7 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | @@ -380,7 +380,7 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | ||
380 | 380 | ||
381 | if(ft->primspace > 0) | 381 | if(ft->primspace > 0) |
382 | { | 382 | { |
383 | - snconcat(op,4096," space(%d",ft->primspace); | 383 | + snconcat(op,4096," SPACE(%d",ft->primspace); |
384 | if(ft->secspace) | 384 | if(ft->secspace) |
385 | snconcat(op,4096,",%d",ft->secspace); | 385 | snconcat(op,4096,",%d",ft->secspace); |
386 | snconcat(op,4096,"%s",")"); | 386 | snconcat(op,4096,"%s",")"); |
@@ -392,10 +392,10 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | @@ -392,10 +392,10 @@ static void set_ft_state(H3270FT *session, LIB3270_FT_STATE state); | ||
392 | // VM Host | 392 | // VM Host |
393 | if(recfm > 0) | 393 | if(recfm > 0) |
394 | { | 394 | { |
395 | - snconcat(op,4096," recfm %c",rec[recfm-1]); | 395 | + snconcat(op,4096," RECFM %c",rec[recfm-1]); |
396 | 396 | ||
397 | if(ft->lrecl > 0) | 397 | if(ft->lrecl > 0) |
398 | - snconcat(op,4096," lrecl %d",ft->lrecl); | 398 | + snconcat(op,4096," LRECL %d",ft->lrecl); |
399 | 399 | ||
400 | } | 400 | } |
401 | } | 401 | } |
src/lib3270/globals.h
@@ -35,15 +35,6 @@ | @@ -35,15 +35,6 @@ | ||
35 | #include <lib3270.h> /* lib3270 API calls and defs */ | 35 | #include <lib3270.h> /* lib3270 API calls and defs */ |
36 | #include "api.h" | 36 | #include "api.h" |
37 | 37 | ||
38 | -/* From glibconfig.h */ | ||
39 | -#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) | ||
40 | - #define LIB3270_INTERNAL __hidden extern | ||
41 | -#elif defined (__GNUC__) && defined (HAVE_GNUC_VISIBILITY) | ||
42 | - #define LIB3270_INTERNAL __attribute__((visibility("hidden"))) extern | ||
43 | -#else | ||
44 | - #define LIB3270_INTERNAL | ||
45 | -#endif | ||
46 | - | ||
47 | #if defined(X3270_TN3270E) && !defined(X3270_ANSI) /*[*/ | 38 | #if defined(X3270_TN3270E) && !defined(X3270_ANSI) /*[*/ |
48 | #define X3270_ANSI 1 /* RFC2355 requires NVT mode */ | 39 | #define X3270_ANSI 1 /* RFC2355 requires NVT mode */ |
49 | #endif /*]*/ | 40 | #endif /*]*/ |
src/plugins/rx3270/Makefile.in
@@ -44,7 +44,7 @@ include ../../include/plugin.mak | @@ -44,7 +44,7 @@ include ../../include/plugin.mak | ||
44 | include $(CLASSLIBDIR)/class.mak | 44 | include $(CLASSLIBDIR)/class.mak |
45 | 45 | ||
46 | LIBS=@REXX_LIBS@ @LIBICONV@ @DBUS_LIBS@ | 46 | LIBS=@REXX_LIBS@ @LIBICONV@ @DBUS_LIBS@ |
47 | -CFLAGS=@REXX_CFLAGS@ @DBUS_CFLAGS@ | 47 | +CFLAGS=@CFLAGS@ @REXX_CFLAGS@ @DBUS_CFLAGS@ |
48 | REXX_HOME=@REXX_HOME@ | 48 | REXX_HOME=@REXX_HOME@ |
49 | REXXLIBDIR=@REXX_LIBDIR@ | 49 | REXXLIBDIR=@REXX_LIBDIR@ |
50 | 50 |