Do not include GIF throbber loading support if GIF support is excluded

svn path=/trunk/netsurf/; revision=5084
This commit is contained in:
Rob Kendrick 2008-08-13 13:44:10 +00:00
parent 91bf96fabf
commit 783cb29331
2 changed files with 7 additions and 0 deletions

View File

@ -20,7 +20,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#ifdef WITH_GIF
#include <libnsgif.h>
#endif
#include "utils/log.h"
#include "gtk/gtk_throbber.h"
#include "gtk/gtk_bitmap.h"
@ -94,6 +96,7 @@ bool nsgtk_throbber_initialise_from_png(const int frames, ...)
* \param fn Filename of GIF to use. It must have at least two frames.
* \return true on success.
*/
#ifdef WITH_GIF
bool nsgtk_throbber_initialise_from_gif(const char *fn)
{
/* disect the GIF provided by filename in *fn into a series of
@ -212,6 +215,7 @@ bool nsgtk_throbber_initialise_from_gif(const char *fn)
return true;
}
#endif
void nsgtk_throbber_finalise(void)
{
@ -225,3 +229,4 @@ void nsgtk_throbber_finalise(void)
nsgtk_throbber = NULL;
}

View File

@ -29,7 +29,9 @@ struct nsgtk_throbber
extern struct nsgtk_throbber *nsgtk_throbber;
#ifdef WITH_GIF
bool nsgtk_throbber_initialise_from_gif(const char *fn);
#endif
bool nsgtk_throbber_initialise_from_png(const int frames, ...);
void nsgtk_throbber_finalise(void);