Today's changes didn't compile
Frank Bergmann <[email protected]> Thu, 3 Oct 2019 21:11:06 +0200
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
Hi, for today's changes I required some kind of brute force patches via standards checking to build dietlibc. Frank dietlibc frank 21:07:05$ cat dietlibc-20191003-c11-fixes.patch --- include/uchar.h.orig 2019-10-03 17:39:15.000000000 +0200 +++ include/uchar.h 2019-10-03 21:01:35.000000000 +0200 @@ -1,3 +1,4 @@ +#if __STDC_VERSION__ >= 201112L #ifndef _UCHAR_H #define _UCHAR_H @@ -33,3 +34,5 @@ __END_DECLS #endif +#endif + --- lib/c16rtomb.c.orig 2019-10-03 17:39:15.000000000 +0200 +++ lib/c16rtomb.c 2019-10-03 20:59:51.000000000 +0200 @@ -1,3 +1,4 @@ +#if __STDC_VERSION__ >= 201112L #include <uchar.h> #include <errno.h> @@ -120,3 +121,4 @@ assert(c16rtomb(buf, 'x', &st) == -1 && errno==EILSEQ); // second half of pair missing } #endif +#endif --- lib/c32rtomb.c.orig 2019-10-03 17:39:15.000000000 +0200 +++ lib/c32rtomb.c 2019-10-03 21:00:35.000000000 +0200 @@ -1,3 +1,4 @@ +#if __STDC_VERSION__ >= 201112L #include <uchar.h> #include <errno.h> @@ -68,3 +69,4 @@ assert(c32rtomb(buf, 0xd83c, &st) == -1); // surrogate pair range is invalid } #endif +#endif --- lib/mbrtoc16.c.orig 2019-10-03 17:39:15.000000000 +0200 +++ lib/mbrtoc16.c 2019-10-03 21:02:41.000000000 +0200 @@ -1,3 +1,4 @@ +#if __STDC_VERSION__ >= 201112L #include <uchar.h> #include <errno.h> #include "dietmb.h" @@ -78,3 +79,4 @@ errno=0; memset(&s,0,sizeof(s)); assert(mbrtoc16(&x,"\xfe\xff",2,&s)==-1); // BOM not valid in UTF-8 } #endif +#endif --- lib/mbrtoc32.c.orig 2019-10-03 17:39:15.000000000 +0200 +++ lib/mbrtoc32.c 2019-10-03 21:03:12.000000000 +0200 @@ -1,3 +1,4 @@ +#if __STDC_VERSION__ >= 201112L #include <uchar.h> #include <errno.h> #include "dietmb.h" @@ -53,3 +54,4 @@ errno=0; memset(&s,0,sizeof(s)); assert(mbrtoc32(&x,"\xfe\xff",2,&s)==-1); // BOM not valid in UTF-8 } #endif +#endif viclavic:dietlibc frank 21:07:06$