From bf5993b9bb51fbd74573c49cb1c5df9f79860e93 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 12 Jan 1999 17:58:26 +0000 Subject: [PATCH] #warning isn't portable, check for gcc -Yosh --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-12 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ gdate.c | 2 +- glib/gdate.c | 2 +- 10 files changed, 34 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2315db4d..62f474b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 2315db4d..62f474b8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Tue Jan 12 09:57:06 PST 1999 Manish Singh + + * gdate.c: #warning isn't portable, check for gcc + 1999-01-12 Sebastian Wilhelmi * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro. diff --git a/gdate.c b/gdate.c index 44a6bad6..403aeb2e 100644 --- a/gdate.c +++ b/gdate.c @@ -801,7 +801,7 @@ g_date_set_time (GDate *d, #ifdef HAVE_LOCALTIME_R localtime_r (&t, &tm); #else -# ifdef G_THREADS_ENABLED +# 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 diff --git a/glib/gdate.c b/glib/gdate.c index 44a6bad6..403aeb2e 100644 --- a/glib/gdate.c +++ b/glib/gdate.c @@ -801,7 +801,7 @@ g_date_set_time (GDate *d, #ifdef HAVE_LOCALTIME_R localtime_r (&t, &tm); #else -# ifdef G_THREADS_ENABLED +# 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 -- 2.34.1