From 8a5af1a184b9aa1f37fd72670e164e41f27569b1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 15 Apr 2016 13:44:12 +0200 Subject: Use __machine_*_t_defined for internal types Newlib defines defaults for internal types via and uses to let targets define their own type if necessary. Previously for example #ifndef __dev_t_defined typedef short __dev_t; #endif However, the __*_t_defined pattern conflicts with the glibc type guard pattern for user types, e.g. dev_t in this example. Introduce a __machine_*_t_defined pattern for internal types (defined by , used by ). For example #ifndef __machine_dev_t_defined typedef short __dev_t; #endif Signed-off-by: Sebastian Huber --- newlib/libc/stdlib/local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/stdlib/local.h') diff --git a/newlib/libc/stdlib/local.h b/newlib/libc/stdlib/local.h index 12e6998c1..aaa32dff5 100644 --- a/newlib/libc/stdlib/local.h +++ b/newlib/libc/stdlib/local.h @@ -7,7 +7,7 @@ char * _EXFUN(_gcvt,(struct _reent *, double , int , char *, char, int)); char *__locale_charset(_NOARGS); -#ifndef __mbstate_t_defined +#ifndef __machine_mbstate_t_defined #include #endif -- cgit v1.2.3