1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ #ifndef BYTESWAP_H_ #define BYTESWAP_H_ #include <sys/endian.h> #ifdef __OpenBSD__ #define bswap_16(x) swap16(x) #else #define bswap_16(x) bswap16(x) #endif #endif