Portability: ESC_CHAR is defined in /usr/include/langinfo.h in some systems

...so undefine it to avoid warning.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Mikulas Patocka 2012-12-12 09:45:49 +04:00 committed by Andrew Borodin
parent e9f883a3cf
commit b475e31255

View File

@ -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"