wrlib: Use a Conditional for GIF in the makefile instead of #if in source

The use of the conditionals provided by autotools provides a better result
as they avoid unnecessary compilation.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2013-12-30 18:11:02 +00:00
1 parent f892ce4d37
commit 7831acebe3
3 files changed
+6 -7

No files matched your search

+4 -2
View File
@@ -40,9 +40,11 @@ libwraster_la_SOURCES = \
ppm.c \
png.c \
jpeg.c \
tiff.c \
gif.c
tiff.c
if USE_GIF
libwraster_la_SOURCES += gif.c
endif
LTCOMPILE2=`echo $(LTCOMPILE) | sed -e s/-fomit-frame-pointer//`
COMPILE2=`echo $(COMPILE) | sed -e s/-fomit-frame-pointer//`
-4
View File
@@ -22,8 +22,6 @@
#include <config.h>
#ifdef USE_GIF
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -209,5 +207,3 @@ RImage *RLoadGIF(const char *file, int index)
return image;
}
#endif /* USE_GIF */