59edfd521a
tested mikeb@, tweaks and ok brad@, ok dcoppa@
15 lines
450 B
Plaintext
15 lines
450 B
Plaintext
$OpenBSD: patch-utf8_c,v 1.2 2013/01/03 11:54:49 shadchin Exp $
|
|
--- utf8.c.orig Fri Oct 19 21:40:14 2012
|
|
+++ utf8.c Tue Oct 23 22:32:16 2012
|
|
@@ -45,6 +45,10 @@
|
|
#include "utf8.h"
|
|
#include "u8_lc_map.h"
|
|
|
|
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
|
|
+#define alloca(size) __builtin_alloca(size)
|
|
+#endif
|
|
+
|
|
static const uint32_t offsetsFromUTF8[6] = {
|
|
0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
|
0x03C82080UL, 0xFA082080UL, 0x82082080UL
|