Use %td only if C99 is supported.
authorChris Hanson <org/chris-hanson/cph>
Mon, 22 Mar 2010 07:14:05 +0000 (00:14 -0700)
committerChris Hanson <org/chris-hanson/cph>
Mon, 22 Mar 2010 07:14:05 +0000 (00:14 -0700)
src/microcode/gcloop.c

index 0e7931cf550fb49036c834bece9a8526a5deddc9..52dfcdf0c729b2797004b0a5e73835c089c88aae 100644 (file)
@@ -928,7 +928,12 @@ check_newspace_sync (void)
 {
   if ((newspace_next - newspace_start)
       != (tospace_next - tospace_start))
-    std_gc_death ("mismatch between newspace and tospace ptrs: %td/%td",
+    std_gc_death (
+#ifdef HAVE_STDC_99
+                 "mismatch between newspace and tospace ptrs: %td/%td",
+#else
+                 "mismatch between newspace and tospace ptrs: %d/%d",
+#endif
                  (newspace_next - newspace_start),
                  (tospace_next - tospace_start));
 }