summaryrefslogtreecommitdiff
path: root/lib/strftime.c
diff options
context:
space:
mode:
authorNeil Jerram <neil@ossau.uklinux.net>2009-01-12 21:48:17 +0000
committerNeil Jerram <neil@ossau.uklinux.net>2009-01-12 22:08:56 +0000
commit4a462e35440fdc3f10b0f88b3fb737fa76ed146d (patch)
treef061bae888c82f95e32a03add76c21bfe927e896 /lib/strftime.c
parentdc686d7b0a1490e26482e018489dec040b79b952 (diff)
downloadguile-4a462e35440fdc3f10b0f88b3fb737fa76ed146d.tar.gz
Make sure that we have a real on-the-stack alloca()
Because of how Guile saves and restores continuations (by copying the stack), and how it uses alloca to create space for debug information on the stack, we must have an alloca() that really does use the stack, and not one that uses the heap. To do this, we use the Gnulib "alloca-opt" module instead of "alloca". This commit also updates the Gnulib sources from the current Gnulib Git repository.
Diffstat (limited to 'lib/strftime.c')
-rw-r--r--lib/strftime.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/strftime.c b/lib/strftime.c
index b7b7c1f1b..ac011d431 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -50,14 +50,7 @@ extern char *tzname[];
#define DO_MULTIBYTE (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE)
#if DO_MULTIBYTE
-# if HAVE_MBRLEN
-# include <wchar.h>
-# else
- /* Simulate mbrlen with mblen as best we can. */
-# define mbstate_t int
-# define mbrlen(s, n, ps) mblen (s, n)
-# define mbsinit(ps) (*(ps) == 0)
-# endif
+# include <wchar.h>
static const mbstate_t mbstate_zero;
#endif