diff options
author | DRC <dcommander@users.sourceforge.net> | 2009-09-28 08:19:40 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2009-09-28 08:19:40 +0000 |
commit | 35eee0beee4f333a9ee2987292ecdedaee2c6746 (patch) | |
tree | 681814b883bc81254c485864392e0ce561a02607 /common/jpeg/jdhuff.h | |
parent | ecdfb08b0c1c74b50c4143157aa5515ed5a938a9 (diff) | |
download | tigervnc-35eee0beee4f333a9ee2987292ecdedaee2c6746.tar.gz tigervnc-35eee0beee4f333a9ee2987292ecdedaee2c6746.zip |
Not all platforms define __WORDSIZE
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3902 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/jpeg/jdhuff.h')
-rw-r--r-- | common/jpeg/jdhuff.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/common/jpeg/jdhuff.h b/common/jpeg/jdhuff.h index 8e50bbfb..a7c8188f 100644 --- a/common/jpeg/jdhuff.h +++ b/common/jpeg/jdhuff.h @@ -73,8 +73,17 @@ EXTERN(void) jpeg_make_d_derived_tbl * necessary. */ -typedef long bit_buf_type; /* type of bit-extraction buffer */ -#define BIT_BUF_SIZE __WORDSIZE /* size of buffer in bits */ +#if __WORDSIZE == 64 + +typedef long bit_buf_type; /* type of bit-extraction buffer */ +#define BIT_BUF_SIZE 64 /* size of buffer in bits */ + +#else + +typedef INT32 bit_buf_type; /* type of bit-extraction buffer */ +#define BIT_BUF_SIZE 32 /* size of buffer in bits */ + +#endif /* If long is > 32 bits on your machine, and shifting/masking longs is * reasonably fast, making bit_buf_type be long and setting BIT_BUF_SIZE |