summaryrefslogtreecommitdiff
path: root/gdate.c
diff options
context:
space:
mode:
authorManish Singh <yosh@src.gnome.org>1999-01-12 17:58:26 +0000
committerManish Singh <yosh@src.gnome.org>1999-01-12 17:58:26 +0000
commitbf5993b9bb51fbd74573c49cb1c5df9f79860e93 (patch)
treeb815f035c4cf29334c29ed67440b24aea937d6b3 /gdate.c
parent3ed6ad5a1746a25185f6296eca74ffdde26394b2 (diff)
downloadglib-bf5993b9bb51fbd74573c49cb1c5df9f79860e93.tar.gz
#warning isn't portable, check for gcc
-Yosh
Diffstat (limited to 'gdate.c')
-rw-r--r--gdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdate.c b/gdate.c
index 44a6bad67..403aeb2ec 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