mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
20 lines
330 B
C
20 lines
330 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/.libs/libpixbufloader-pnm.so"))
|
||
|
putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs");
|
||
|
}
|