mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
|
|
@ -5,9 +5,6 @@
|
|||
#define __USE_GNU
|
||||
|
||||
#include <limits.h>
|
||||
#if !defined(__FreeBSD__) && !defined(__MidnightBSD__)
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
#include <sys/shm.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
|
@ -20,6 +17,7 @@
|
|||
#include <spa/debug/types.h>
|
||||
#include <spa/param/props.h>
|
||||
#include <spa/utils/atomic.h>
|
||||
#include <spa/utils/endian.h>
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/utils/json.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue