From: mjwybrow Date: Sun, 21 May 2006 04:12:36 +0000 (+0000) Subject: * src/extension/internal/pdf.cpp: Compilation fix. For versions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f3050f96cd654bc7199957c5439c62bc519f52d;p=inkscape.git * 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(). --- diff --git a/ChangeLog b/ChangeLog index 197a7c855..8b601381e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-21 Michael Wybrow + + * 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 * src/extensin/internal/ps.cpp: diff --git a/src/extension/internal/pdf.cpp b/src/extension/internal/pdf.cpp index cd9ec7685..d9547270e 100644 --- a/src/extension/internal/pdf.cpp +++ b/src/extension/internal/pdf.cpp @@ -313,7 +313,11 @@ PrintPDF::begin(Inkscape::Extension::Print *mod, SPDocument *doc) GDate date; GTimeVal ltime; glong time_hh, time_mm, time_ss; +#if GLIB_CHECK_VERSION(2,9,0) g_date_set_time_t (&date, time (NULL)); +#else + g_date_set_time(&date, time (NULL)); +#endif gchar date_str[100], time_str[100]; g_date_strftime(date_str, 99, "%Y%m%d", &date); g_get_current_time(<ime);