mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
80581c3011
2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
21 lines
374 B
C
21 lines
374 B
C
#include <config.h>
|
|
#include <glib.h>
|
|
|
|
#include <sys/stat.h>
|
|
#include <stdlib.h>
|
|
|
|
static gboolean
|
|
file_exists (const char *filename)
|
|
{
|
|
struct stat statbuf;
|
|
|
|
return stat (filename, &statbuf) == 0;
|
|
}
|
|
|
|
void
|
|
pixbuf_init (void)
|
|
{
|
|
if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
|
|
g_setenv ("GDK_PIXBUF_MODULE_FILE", "../gdk-pixbuf/gdk-pixbuf.loaders", TRUE);
|
|
}
|