ext/libcouchbase/src/utilities.c in libcouchbase-1.2.8 vs ext/libcouchbase/src/utilities.c in libcouchbase-1.3.0

- old
+ new

@@ -32,9 +32,14 @@ val >>= 8; } return ret; } +extern lcb_uint16_t lcb_byteswap16(lcb_uint16_t val) +{ + return ((val & 0xff) << 8) | ((val >> 8) & 0xff); +} + /** * While the C standard library uses 'putenv' for environment variable * manipulation, POSIX defines setenv (which works sanely) but Windows * only has putenv (via the CRT interface). * However Windows also has the 'GetEnvironmentVariable' etc. API - which