Add __nl_item to <sys/_types.h> and use it
Add __nl_item to <sys/_types.h> for FreeBSD compatibility. Use it in <langinfo.h> and the Cygwin <nl_types.h>. Make the enum __nl_item in <langinfo.h> anonymous. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
@@ -87,7 +87,7 @@ typedef struct __nl_cat_d {
|
||||
|
||||
|
||||
#ifndef _NL_ITEM_DECLARED
|
||||
typedef int nl_item;
|
||||
typedef __nl_item nl_item;
|
||||
#define _NL_ITEM_DECLARED
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user