From b475e312552c3fbe2e224892e5c56c474ec86bca Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Wed, 12 Dec 2012 09:45:49 +0400 Subject: [PATCH] Portability: ESC_CHAR is defined in /usr/include/langinfo.h in some systems ...so undefine it to avoid warning. Signed-off-by: Andrew Borodin --- lib/global.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/global.h b/lib/global.h index 580ec0673..f13dfc04f 100644 --- a/lib/global.h +++ b/lib/global.h @@ -117,6 +117,10 @@ #define BUF_SMALL 128 #define BUF_TINY 64 +/* ESC_CHAR is defined in /usr/include/langinfo.h in some systems */ +#ifdef ESC_CHAR +#undef ESC_CHAR +#endif /* AIX compiler doesn't understand '\e' */ #define ESC_CHAR '\033' #define ESC_STR "\033"