Commit b7d13c07 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

include/share/endswap.h : Fix usage of HAVE_BSWAP16.

The code was incorrectly using #ifndef on a value that was always defined
to a value of either 0 or 1.
parent 3af2f2b3
......@@ -34,7 +34,7 @@
#if HAVE_BSWAP32 /* GCC and Clang */
/* GCC prior to 4.8 didn't provide bswap16 on x86_64 */
#ifndef HAVE_BSWAP16
#if ! HAVE_BSWAP16
static inline unsigned short __builtin_bswap16(unsigned short a)
{
return (a<<8)|(a>>8);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment