From bd62f539defbbd16f73e99ff20d2daa6d6c18d9e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 18 Jan 2018 23:53:18 -0600 Subject: [PATCH] Guard langinfo.h nl_item from multiple typedefs This is a prerequisite of adding nl_types.h support to Cygwin. Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/langinfo.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newlib/libc/include/langinfo.h b/newlib/libc/include/langinfo.h index 59381d6b6..458b92565 100644 --- a/newlib/libc/include/langinfo.h +++ b/newlib/libc/include/langinfo.h @@ -36,7 +36,10 @@ #include #endif +#ifndef _NL_ITEM_DECLARED typedef int nl_item; +#define _NL_ITEM_DECLARED +#endif enum __nl_item {