inttypes.h

Ralf Corsepius ralf.corsepius@rtems.org
Wed Sep 21 10:14:00 GMT 2005


Jeff,

I am having doubt on this patch you applied yesterday:

Index: libc/include/inttypes.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/inttypes.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- libc/include/inttypes.h     20 Sep 2005 19:25:57 -0000      1.1
+++ libc/include/inttypes.h     20 Sep 2005 21:21:51 -0000      1.2
@@ -14,6 +14,8 @@
 #define _INTTYPES_H

 #include <stdint.h>
+#define __need_wchar_t
+#include <stddef.h>

 #define __STRINGIFY(a) #a

IMO, this kind patch should be applied to stdint.h instead, because
"stdint.h exports types", while "inttypes.h uses them", and because
stdint.h probably will need stddef.h to get wchar_t support, anyway.

Ralf

 



More information about the Newlib mailing list