mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Add spa/utils/endian.h
This provides access to GNU C library-style endian and byteswap functions. Windows doesn't provide pre-processor defines for endianness, but all current Windows architectures (X32, X64, ARM) are little-endian.
This commit is contained in:
parent
a97e8b6d1f
commit
5d7624001d
10 changed files with 35 additions and 30 deletions
|
|
@ -7,12 +7,10 @@
|
|||
#include <stddef.h>
|
||||
#include <errno.h>
|
||||
#include <arpa/inet.h>
|
||||
#if __BYTE_ORDER != __LITTLE_ENDIAN
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
|
||||
#include <spa/param/audio/format.h>
|
||||
#include <spa/param/audio/format-utils.h>
|
||||
#include <spa/utils/endian.h>
|
||||
|
||||
#ifdef HAVE_LC3PLUS_H
|
||||
#include <lc3plus.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue