Definitions for bswapxx() macros on OpenBSD.

This commit is contained in:
Matthieu Herrb 2006-03-05 16:32:40 +00:00
parent 4335868476
commit b56a1513d2
2 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,11 @@
#include <GL/glxproto.h>
#ifdef __linux__
#include <byteswap.h>
#elif defined(__OpenBSD__)
#include <sys/endian.h>
#define bswap_16 __swap16
#define bswap_32 __swap32
#define bswap_64 __swap64
#else
#include <sys/endian.h>
#define bswap_16 bswap16

View File

@ -30,6 +30,11 @@
#include <GL/glxproto.h>
#ifdef __linux__
#include <byteswap.h>
#elif defined(__OpenBSD__)
#include <sys/endian.h>
#define bswap_16 __swap16
#define bswap_32 __swap32
#define bswap_64 __swap64
#else
#include <sys/endian.h>
#define bswap_16 bswap16