From 71eebf1cc7a905eccc21fd3815f0fa41292bcc1c Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 12 Oct 2006 23:43:49 +0200 Subject: [PATCH] Compensate for glibc not defining wcwidth() when _XOPEN_SOURCE is not set --- src/intl/charsets.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index 0892e265a..6c296a381 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -1,5 +1,12 @@ /* Charsets convertor */ +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE /* wcwidth() */ +#endif +#ifndef _GNU_SOURCE +#define _GNU_SOURCE /* strcasecmp() */ +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif