Mercurial > gnulib
annotate m4/strptime.m4 @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | b06060465f09 |
children |
rev | line source |
---|---|
15109
0d681ec553c1
strptime: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
1 # strptime.m4 serial 7 |
40057
b06060465f09
maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents:
19484
diff
changeset
|
2 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc. |
8047
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_FUNC_STRPTIME], |
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
8276
0ead70460e39
Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
Paul Eggert <eggert@cs.ucla.edu>
parents:
8146
diff
changeset
|
9 AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) |
8049
93b9f2a87f93
* lib/strptime.h (strptime): Use 'restrict' for args where
Paul Eggert <eggert@cs.ucla.edu>
parents:
8047
diff
changeset
|
10 AC_REQUIRE([AC_C_RESTRICT]) |
13133
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
11 AC_CHECK_FUNCS_ONCE([strptime]) |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
12 if test $ac_cv_func_strptime != yes; then |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
13 HAVE_STRPTIME=0 |
8146
b31580167c2b
New module 'time', so that apps can include <time.h> as per
Paul Eggert <eggert@cs.ucla.edu>
parents:
8049
diff
changeset
|
14 fi |
8047
4926328afe92
2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 ]) |
13133
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
16 |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
17 # Prerequisites of lib/strptime.c. |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
18 AC_DEFUN([gl_PREREQ_STRPTIME], |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
19 [ |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
20 AC_REQUIRE([gl_TM_GMTOFF]) |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
21 : |
72abbb959390
strptime: Fix C++ test error on mingw.
Bruno Haible <bruno@clisp.org>
parents:
12559
diff
changeset
|
22 ]) |