Mercurial > hg > octave-shane > gnulib-hg
annotate modules/mbsnrtowcs @ 17582:630472a8cafd
gettimeofday: port recent C++ fix to Emacs
Without this further patch, Emacs won't build due to
the portcheck failing. Also, this simplifies the patch a bit.
* lib/time.in.h (localtime, gmtime): Don't replace unless
GNULIB_GETTIMEOFDAY. Treat them more like mktime.
* lib/time.in.h (localtime, gmtime):
* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
* modules/time (time.h):
Don't worry about about the possibility of localtime and gmtime
being absent; they're present in all C libraries we know about.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
Don't assume sys_time is present and has been initialized.
Instead, use a hack that should work even if it hasn't been.
Don't use a portcheck for gmtime or localtime; this supports
the hack.
* modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 17 Dec 2013 12:38:54 -0800 |
parents | 0b43830f8761 |
children |
rev | line source |
---|---|
10932 | 1 Description: |
2 mbsnrtowcs() function: convert string to wide string. | |
3 | |
4 Files: | |
5 lib/mbsnrtowcs.c | |
14262
c3c0467423d8
mbsnrtowcs: Prepare for new module mbsnrtowwcs.
Bruno Haible <bruno@clisp.org>
parents:
10932
diff
changeset
|
6 lib/mbsnrtowcs-impl.h |
10932 | 7 lib/mbsrtowcs-state.c |
8 m4/mbsnrtowcs.m4 | |
9 m4/mbstate_t.m4 | |
10 | |
11 Depends-on: | |
14683
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
14262
diff
changeset
|
12 wchar |
10932 | 13 extensions |
14683
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
14262
diff
changeset
|
14 mbrtowc [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1] |
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
14262
diff
changeset
|
15 minmax [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1] |
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
14262
diff
changeset
|
16 strnlen1 [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1] |
10932 | 17 |
18 configure.ac: | |
19 gl_FUNC_MBSNRTOWCS | |
15032
0b43830f8761
mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
20 if test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1; then |
0b43830f8761
mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
21 AC_LIBOBJ([mbsnrtowcs]) |
0b43830f8761
mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
22 AC_LIBOBJ([mbsrtowcs-state]) |
0b43830f8761
mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
23 gl_PREREQ_MBSNRTOWCS |
0b43830f8761
mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
24 fi |
10932 | 25 gl_WCHAR_MODULE_INDICATOR([mbsnrtowcs]) |
26 | |
27 Makefile.am: | |
28 | |
29 Include: | |
30 <wchar.h> | |
31 | |
32 License: | |
33 LGPL | |
34 | |
35 Maintainer: | |
36 Bruno Haible | |
37 |