mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
Removed the #warning about MT unsafety without localtime_r.
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gdate.c (g_date_set_time): Removed the #warning about MT unsafety without localtime_r. * configure.in: Moved it here.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
427345f568
commit
d60b23eb02
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
1999-01-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_time): Removed the #warning about MT
|
||||||
|
unsafety without localtime_r.
|
||||||
|
|
||||||
|
* configure.in: Moved it here.
|
||||||
|
|
||||||
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
Mon Jan 25 10:07:53 1999 Raph Levien <raph@gimp.org>
|
||||||
|
|
||||||
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
* configure.in: (#define G_THREADS_IMPL...) Changed the #define,
|
||||||
|
|||||||
@@ -574,6 +574,9 @@ FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
|
|||||||
functions will not be MT-safe during their first call because
|
functions will not be MT-safe during their first call because
|
||||||
there is no 'getpwuid_r' on your system."
|
there is no 'getpwuid_r' on your system."
|
||||||
|
|
||||||
|
FUNC_NO_LOCALTIME_R="the `g_date_set_time' function will not be MT-safe
|
||||||
|
because there is no `localtime_r' on your system."
|
||||||
|
|
||||||
dnl determination of thread implementation
|
dnl determination of thread implementation
|
||||||
dnl ***************************************
|
dnl ***************************************
|
||||||
|
|
||||||
@@ -716,6 +719,9 @@ if test "x$enable_threads" = "xyes"; then
|
|||||||
if test "$ac_cv_func_getpwuid_r" != "yes"; then
|
if test "$ac_cv_func_getpwuid_r" != "yes"; then
|
||||||
AC_MSG_WARN($FUNC_NO_GETPWUID_R)
|
AC_MSG_WARN($FUNC_NO_GETPWUID_R)
|
||||||
fi
|
fi
|
||||||
|
if test "$ac_cv_func_localtime_r" != "yes"; then
|
||||||
|
AC_MSG_WARN($FUNC_NO_LOCALTIME_R)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl determination of G_THREAD_CFLAGS
|
dnl determination of G_THREAD_CFLAGS
|
||||||
|
|||||||
4
gdate.c
4
gdate.c
@@ -801,10 +801,6 @@ g_date_set_time (GDate *d,
|
|||||||
#ifdef HAVE_LOCALTIME_R
|
#ifdef HAVE_LOCALTIME_R
|
||||||
localtime_r (&t, &tm);
|
localtime_r (&t, &tm);
|
||||||
#else
|
#else
|
||||||
# if defined(G_THREADS_ENABLED) && defined(__GNUC__)
|
|
||||||
# warning "the `g_date_set_time' function will not be MT-safe"
|
|
||||||
# warning "because there is no `localtime_r' on your system."
|
|
||||||
# endif
|
|
||||||
{
|
{
|
||||||
struct tm *ptm = localtime (&t);
|
struct tm *ptm = localtime (&t);
|
||||||
g_assert (ptm);
|
g_assert (ptm);
|
||||||
|
|||||||
@@ -801,10 +801,6 @@ g_date_set_time (GDate *d,
|
|||||||
#ifdef HAVE_LOCALTIME_R
|
#ifdef HAVE_LOCALTIME_R
|
||||||
localtime_r (&t, &tm);
|
localtime_r (&t, &tm);
|
||||||
#else
|
#else
|
||||||
# if defined(G_THREADS_ENABLED) && defined(__GNUC__)
|
|
||||||
# warning "the `g_date_set_time' function will not be MT-safe"
|
|
||||||
# warning "because there is no `localtime_r' on your system."
|
|
||||||
# endif
|
|
||||||
{
|
{
|
||||||
struct tm *ptm = localtime (&t);
|
struct tm *ptm = localtime (&t);
|
||||||
g_assert (ptm);
|
g_assert (ptm);
|
||||||
|
|||||||
Reference in New Issue
Block a user