#warning isn't portable, check for gcc
authorManish Singh <yosh@src.gnome.org>
Tue, 12 Jan 1999 17:58:26 +0000 (17:58 +0000)
committerManish Singh <yosh@src.gnome.org>
Tue, 12 Jan 1999 17:58:26 +0000 (17:58 +0000)
-Yosh

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdate.c
glib/gdate.c

index 2315db4..62f474b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
index 2315db4..62f474b 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 12 09:57:06 PST 1999 Manish Singh <yosh@gimp.org>
+
+       * gdate.c: #warning isn't portable, check for gcc
+
 1999-01-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
         * gdate.c: Include config.h to get HAVE_LOCALTIME_R macro.
diff --git a/gdate.c b/gdate.c
index 44a6bad..403aeb2 100644 (file)
--- 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
index 44a6bad..403aeb2 100644 (file)
@@ -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