test HAVE_JPEGLIB_H before including the jpeglib header
authorkramm <kramm>
Thu, 25 Oct 2001 20:36:52 +0000 (20:36 +0000)
committerkramm <kramm>
Thu, 25 Oct 2001 20:36:52 +0000 (20:36 +0000)
lib/rfxswf.c

index 9c80a0f..d7cbb03 100644 (file)
 \r
 #include "rfxswf.h"\r
 \r
+#ifdef HAVE_JPEGLIB_H\r
 #include <jpeglib.h>\r
 #define _JPEGLIB_INCLUDED_\r
+#endif\r
 \r
 // Win32 support may be broken since it was only tested in an older version for Watcom C\r
 #ifdef __NT__\r
@@ -790,9 +792,9 @@ void FreeTags(LPSWF swf)                 // Frees all malloc'ed memory for tags
 #include "modules\swftext.c"\r
 #include "modules\swfobject.c"\r
 #include "modules\swfbutton.c"\r
-#include "modules\swfbits.c"\r
 #include "modules\swftools.c"\r
 #include "modules\swfcgi.c"\r
+#include "modules\swfbits.c"\r
 \r
 #else\r
 \r
@@ -801,9 +803,9 @@ void FreeTags(LPSWF swf)                 // Frees all malloc'ed memory for tags
 #include "modules/swftext.c"\r
 #include "modules/swfobject.c"\r
 #include "modules/swfbutton.c"\r
-#include "modules/swfbits.c"\r
 #include "modules/swftools.c"\r
 #include "modules/swfcgi.c"\r
+#include "modules/swfbits.c"\r
 \r
 #endif\r
 \r