diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2008-08-13 13:44:10 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2008-08-13 13:44:10 +0000 |
commit | 783cb293317e71ab69c3e0c55781a132effb30cd (patch) | |
tree | ccd898272c8bbf61f26f82868539ddc6a9bbeed8 /gtk/gtk_throbber.c | |
parent | 91bf96fabf6287f23ec1172b78842afb801259cc (diff) | |
download | netsurf-783cb293317e71ab69c3e0c55781a132effb30cd.tar.gz netsurf-783cb293317e71ab69c3e0c55781a132effb30cd.tar.bz2 |
Do not include GIF throbber loading support if GIF support is excluded
svn path=/trunk/netsurf/; revision=5084
Diffstat (limited to 'gtk/gtk_throbber.c')
-rw-r--r-- | gtk/gtk_throbber.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtk_throbber.c b/gtk/gtk_throbber.c index 9070c61ba..0ccd89b5f 100644 --- a/gtk/gtk_throbber.c +++ b/gtk/gtk_throbber.c @@ -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; } + |