From d60b23eb028090f35fb925c845b0bad0d99d1e49 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Tue, 26 Jan 1999 13:17:46 +0000 Subject: [PATCH] Removed the #warning about MT unsafety without localtime_r. 1999-01-26 Sebastian Wilhelmi * gdate.c (g_date_set_time): Removed the #warning about MT unsafety without localtime_r. * configure.in: Moved it here. --- ChangeLog | 7 +++++++ ChangeLog.pre-2-0 | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-12 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ configure.in | 6 ++++++ gdate.c | 4 ---- glib/gdate.c | 4 ---- 11 files changed, 62 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa8bb0fc..e050333d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index aa8bb0fc..e050333d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +1999-01-26 Sebastian Wilhelmi + + * 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 * configure.in: (#define G_THREADS_IMPL...) Changed the #define, diff --git a/configure.in b/configure.in index 768717c4..a01a905e 100644 --- a/configure.in +++ b/configure.in @@ -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 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 *************************************** @@ -716,6 +719,9 @@ if test "x$enable_threads" = "xyes"; then if test "$ac_cv_func_getpwuid_r" != "yes"; then AC_MSG_WARN($FUNC_NO_GETPWUID_R) fi + if test "$ac_cv_func_localtime_r" != "yes"; then + AC_MSG_WARN($FUNC_NO_LOCALTIME_R) + fi fi dnl determination of G_THREAD_CFLAGS diff --git a/gdate.c b/gdate.c index 403aeb2e..c3b7b318 100644 --- a/gdate.c +++ b/gdate.c @@ -801,10 +801,6 @@ g_date_set_time (GDate *d, #ifdef HAVE_LOCALTIME_R localtime_r (&t, &tm); #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); g_assert (ptm); diff --git a/glib/gdate.c b/glib/gdate.c index 403aeb2e..c3b7b318 100644 --- a/glib/gdate.c +++ b/glib/gdate.c @@ -801,10 +801,6 @@ g_date_set_time (GDate *d, #ifdef HAVE_LOCALTIME_R localtime_r (&t, &tm); #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); g_assert (ptm); -- 2.34.1