Not all platforms define __WORDSIZE


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3902 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/jpeg/jdhuff.h b/common/jpeg/jdhuff.h
index 8e50bbf..a7c8188 100644
--- a/common/jpeg/jdhuff.h
+++ b/common/jpeg/jdhuff.h
@@ -73,8 +73,17 @@
  * 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