Define byteswap functions for FreeBSD and NetBSD.

This resolves FTBFS for kttsd alsaplayer.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/5/head
Slávek Banko 3 years ago
parent 91fc9555ab
commit 32f9e36ff0
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1,8 +1,15 @@
#ifndef FORMATS_H
#define FORMATS_H 1
#include <endian.h>
#include <byteswap.h>
#if defined(__FreeBSD__) || defined(__NetBSD__)
# include <sys/endian.h>
# define bswap_16(x) bswap16(x)
# define bswap_32(x) bswap32(x)
# define bswap_64(x) bswap64(x)
#else
# include <endian.h>
# include <byteswap.h>
#endif
/* Definitions for .VOC files */

Loading…
Cancel
Save