From adce1f16e0d815e5c762407da3544a7d2eff9303 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 19 Jan 2006 00:06:57 +0000 Subject: Only try to use byteswap.h on linux. Assume that everyone else (thinking of BSDs here) has sys/endian.h, and use macros as appropriate for the names. This should probably be in a gloabl header. --- GL/glx/indirect_dispatch.c | 1 - GL/glx/indirect_dispatch_swap.c | 7 +++++++ GL/glx/indirect_util.c | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'GL') diff --git a/GL/glx/indirect_dispatch.c b/GL/glx/indirect_dispatch.c index 3aabd8cf8..8c270ea9b 100644 --- a/GL/glx/indirect_dispatch.c +++ b/GL/glx/indirect_dispatch.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include "indirect_size.h" #include "indirect_size_get.h" diff --git a/GL/glx/indirect_dispatch_swap.c b/GL/glx/indirect_dispatch_swap.c index 16e2b605a..a6df3521b 100644 --- a/GL/glx/indirect_dispatch_swap.c +++ b/GL/glx/indirect_dispatch_swap.c @@ -28,7 +28,14 @@ #include #include #include +#ifdef __linux__ #include +#else +#include +#define bswap_16 bswap16 +#define bswap_32 bswap32 +#define bswap_64 bswap64 +#endif #include #include "indirect_size.h" #include "indirect_size_get.h" diff --git a/GL/glx/indirect_util.c b/GL/glx/indirect_util.c index d969cc298..bf0ba66f2 100644 --- a/GL/glx/indirect_util.c +++ b/GL/glx/indirect_util.c @@ -26,7 +26,14 @@ #include #include #include +#ifdef __linux__ #include +#else +#include +#define bswap_16 bswap16 +#define bswap_32 bswap32 +#define bswap_64 bswap64 +#endif #include #include "indirect_size.h" #include "indirect_size_get.h" -- cgit v1.2.3