mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
remove dependencies on jpeg files. Tom Lane, committed by pnunn.
This commit is contained in:
parent
fc9395e64d
commit
647bb6a7e0
@ -19,10 +19,25 @@
|
||||
#include "if.h"
|
||||
#include "il.h"
|
||||
|
||||
#include "jinclude.h"
|
||||
#include "jpeglib.h"
|
||||
#include "jerror.h"
|
||||
#include "jpegint.h"
|
||||
|
||||
/* cope with brain-damaged compilers that don't make sizeof return a size_t */
|
||||
#ifdef SIZEOF
|
||||
#undef SIZEOF
|
||||
#endif
|
||||
#define SIZEOF(object) ((size_t) sizeof(object))
|
||||
|
||||
/* just in case someone needs it */
|
||||
#ifdef RIGHT_SHIFT_IS_UNSIGNED
|
||||
#define SHIFT_TEMPS INT32 shift_temp;
|
||||
#define RIGHT_SHIFT(x,shft) \
|
||||
((shift_temp = (x)) < 0 ? \
|
||||
(shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \
|
||||
(shift_temp >> (shft)))
|
||||
#else
|
||||
#define SHIFT_TEMPS
|
||||
#define RIGHT_SHIFT(x,shft) ((x) >> (shft))
|
||||
#endif
|
||||
|
||||
|
||||
/* BEGIN code adapted from jpeg library */
|
||||
|
Loading…
Reference in New Issue
Block a user