Code

* src/extension/internal/pdf.cpp: Compilation fix. For versions
authormjwybrow <mjwybrow@users.sourceforge.net>
Sun, 21 May 2006 04:12:36 +0000 (04:12 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Sun, 21 May 2006 04:12:36 +0000 (04:12 +0000)
      of glib older that 2.9.0, use g_date_set_time() instead of
      g_date_set_time_t().

ChangeLog
src/extension/internal/pdf.cpp

index 197a7c855993534e3e56f80edee29e66af93f8ef..8b601381e65e6d856c0ec60ad7108bd10950afb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-05-21  Michael Wybrow  <mjwybrow@users.sourceforge.net>
+
+       * src/extension/internal/pdf.cpp: Compilation fix.  For versions
+         of glib older that 2.9.0, use g_date_set_time() instead of
+         g_date_set_time_t().
+
 2006-05-20  MenTaLguY  <mental@rydia.net>
 
        * src/extensin/internal/ps.cpp:
index cd9ec7685a2c1be51e2e5df1df1d2801c42c9995..d9547270eed648f3a8d4f9182d060235f54162cf 100644 (file)
@@ -313,7 +313,11 @@ PrintPDF::begin(Inkscape::Extension::Print *mod, SPDocument *doc)
        GDate date;\r
        GTimeVal ltime;\r
        glong time_hh, time_mm, time_ss;\r
+#if GLIB_CHECK_VERSION(2,9,0)\r
        g_date_set_time_t (&date, time (NULL));\r
+#else\r
+       g_date_set_time(&date, time (NULL));\r
+#endif\r
        gchar date_str[100], time_str[100];\r
        g_date_strftime(date_str, 99, "%Y%m%d", &date);\r
        g_get_current_time(&ltime);\r