Project

General

Profile

Bug #876

<byteswap.h> does not properly define bswap_16 macro

Added by Alex Afanasyev about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Category:
libcrystax
Target version:
Start date:
01/24/2015
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
arm
Host OS:
Linux
Toolchain:
gcc-4.9
Android version:
CrystaX Version:

Description

Here is the problem I encountered while compiling some of my code

/opt/crystax-ndk-10.1.0/platforms/android-3/arch-arm/usr/include/byteswap.h:34:32: error: 'swap16' was not declared in this scope
 #define  bswap_16(x)   swap16(x)

Replacing swap16(x) with bswap16(x) fixed the issue for me.

Also available in: Atom PDF