[poppler] Two portability tweaks
ishmalius at gmail.com
Fri Oct 19 13:44:31 PDT 2007
I'm the guy who does Inkscape builds for WIN32, and I found
two places that need to be tweaked for Mingw builds:
#1 : in /glib, the Makefile needs to call libtool with "--mode=link g++"
instead of gcc. I don't know how to do that in Makefile.am, but that's what
it needs. In the Makefile it is $(CXXLD).
#2 : /glib/test-poppler-glib needs to call localtime() rather than
static gchar *
poppler_format_date (GTime utime)
time_t time = (time_t) utime;
struct tm *t;
const char *fmt_hack = "%c";
if (time == 0 || !(t = localtime (&time)) ) return NULL;
len = strftime (s, sizeof (s), fmt_hack, t);
if (len == 0 || s == '\0') return NULL;
return g_locale_to_utf8 (s, -1, NULL, NULL, NULL);
Many thanks! Please CC me.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the poppler