1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/devel/gdb/files/patch-gdb-gdb_wchar.h
Tijl Coosemans ee9844c8f2 - Update to version 7.7.1.
- Fix a problem on FreeBSD 10+ with converters/libiconv installed.  GDB
  could not print string variables then.

PR:		190700
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
2014-06-10 11:39:29 +00:00

21 lines
880 B
C

--- gdb/gdb_wchar.h.orig 2014-06-05 10:44:18.914279516 +0200
+++ gdb/gdb_wchar.h 2014-06-05 10:46:07.264279306 +0200
@@ -56,7 +56,7 @@
iconvlist. */
#if defined (HAVE_ICONV) && defined (HAVE_WCHAR_H) && defined (HAVE_BTOWC) \
&& (defined (__STDC_ISO_10646__) \
- || (defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108))
+ || (!defined (LIBICONV_PLUG) && defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108))
#include <wchar.h>
#include <wctype.h>
@@ -82,7 +82,7 @@
#define INTERMEDIATE_ENCODING intermediate_encoding ()
const char *intermediate_encoding (void);
-#elif defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108
+#elif !defined (LIBICONV_PLUG) && defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108
#define INTERMEDIATE_ENCODING "wchar_t"
#else
/* This shouldn't happen, because the earlier #if should have filtered