From 1464bfc1385c44d1562b7b156683679a642d1604 Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 25 Oct 2001 20:36:52 +0000 Subject: [PATCH] test HAVE_JPEGLIB_H before including the jpeglib header --- lib/rfxswf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 9c80a0f..d7cbb03 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -14,8 +14,10 @@ #include "rfxswf.h" +#ifdef HAVE_JPEGLIB_H #include #define _JPEGLIB_INCLUDED_ +#endif // Win32 support may be broken since it was only tested in an older version for Watcom C #ifdef __NT__ @@ -790,9 +792,9 @@ void FreeTags(LPSWF swf) // Frees all malloc'ed memory for tags #include "modules\swftext.c" #include "modules\swfobject.c" #include "modules\swfbutton.c" -#include "modules\swfbits.c" #include "modules\swftools.c" #include "modules\swfcgi.c" +#include "modules\swfbits.c" #else @@ -801,9 +803,9 @@ void FreeTags(LPSWF swf) // Frees all malloc'ed memory for tags #include "modules/swftext.c" #include "modules/swfobject.c" #include "modules/swfbutton.c" -#include "modules/swfbits.c" #include "modules/swftools.c" #include "modules/swfcgi.c" +#include "modules/swfbits.c" #endif -- 1.7.10.4