|
@@ -19,7 +19,7 @@
|
|
|
#ifdef _MSC_VER
|
|
|
#include <stdlib.h> // _byteswap_ulong
|
|
|
#endif
|
|
|
-#include "../webp/types.h"
|
|
|
+#include "webp/types.h"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
extern "C" {
|
|
@@ -37,6 +37,12 @@ extern "C" {
|
|
|
// BITS can be any multiple of 8 from 8 to 56 (inclusive).
|
|
|
// Pick values that fit natural register size.
|
|
|
|
|
|
+#ifdef JAVASCRIPT_ENABLED
|
|
|
+
|
|
|
+#define BITS 16
|
|
|
+
|
|
|
+#else
|
|
|
+
|
|
|
#if defined(__i386__) || defined(_M_IX86) // x86 32bit
|
|
|
#define BITS 24
|
|
|
#elif defined(__x86_64__) || defined(_M_X64) // x86 64bit
|
|
@@ -51,6 +57,8 @@ extern "C" {
|
|
|
#define BITS 24
|
|
|
#endif
|
|
|
|
|
|
+#endif
|
|
|
+
|
|
|
//------------------------------------------------------------------------------
|
|
|
// Derived types and constants:
|
|
|
// bit_t = natural register type for storing 'value_' (which is BITS+8 bits)
|