summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-15 13:44:12 +0200
committerCorinna Vinschen <corinna@vinschen.de>2016-04-15 14:51:39 +0200
commit8a5af1a184b9aa1f37fd72670e164e41f27569b1 (patch)
treef3be08ae33e56ec14655ae48bd3851e4c9a02224 /newlib/libc/stdlib
parent9f90ae04358fc3f78e1c561209cc7117309ddfd8 (diff)
downloadcygnal-8a5af1a184b9aa1f37fd72670e164e41f27569b1.tar.gz
cygnal-8a5af1a184b9aa1f37fd72670e164e41f27569b1.tar.bz2
cygnal-8a5af1a184b9aa1f37fd72670e164e41f27569b1.zip
Use __machine_*_t_defined for internal types
Newlib defines defaults for internal types via <sys/_types.h> and uses <machine/_types.h> 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 <machine/_types.h>, used by <sys/_types.h>). For example #ifndef __machine_dev_t_defined typedef short __dev_t; #endif Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/local.h2
1 files changed, 1 insertions, 1 deletions
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 <wchar.h>
#endif