diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2006-03-05 16:32:40 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2006-03-05 16:32:40 +0000 |
commit | b56a1513d27f84dcd55f3dc6053f183aa6f7855b (patch) | |
tree | 3846a4bf8c63a15e48997a551cb3da5786d46762 /GL | |
parent | 4335868476af7c821c64def52b102b93ae91f8b0 (diff) |
Definitions for bswapxx() macros on OpenBSD.
Diffstat (limited to 'GL')
-rw-r--r-- | GL/glx/indirect_dispatch_swap.c | 5 | ||||
-rw-r--r-- | GL/glx/indirect_util.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/GL/glx/indirect_dispatch_swap.c b/GL/glx/indirect_dispatch_swap.c index a6df3521b..a4e053b7b 100644 --- a/GL/glx/indirect_dispatch_swap.c +++ b/GL/glx/indirect_dispatch_swap.c @@ -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 diff --git a/GL/glx/indirect_util.c b/GL/glx/indirect_util.c index 706d43864..c9d8600c8 100644 --- a/GL/glx/indirect_util.c +++ b/GL/glx/indirect_util.c @@ -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 |