mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
28 lines
347 B
C
28 lines
347 B
C
#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 ()
|
|
{
|
|
if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
|
|
putenv ("GDK_PIXBUF_MODULE_FILE=../gdk-pixbuf/gdk-pixbuf.loaders");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|