diff -r 288360b78f30 -r 6b5da1a2765a openalbridge/endianness.h --- a/openalbridge/endianness.h Mon Jun 29 20:01:05 2009 +0000 +++ b/openalbridge/endianness.h Mon Jun 29 23:03:25 2009 +0000 @@ -16,35 +16,13 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#include -#include +#include "globals.h" -#ifndef _WIN32 -#include -#else -#include "winstdint.h" -#endif #ifdef __CPLUSPLUS extern "C" { #endif - -#ifdef HAVE_BYTESWAP_H - /* use byteswap macros from the host system, hopefully optimized ones ;-) */ -#include -#else - /* define our own version, simple, stupid, straight-forward... */ - -#define bswap_16(x) ((((x) & 0xFF00) >> 8) | (((x) & 0x00FF) << 8)) - -#define bswap_32(x) ((((x) & 0xFF000000) >> 24) | \ - (((x) & 0x00FF0000) >> 8) | \ - (((x) & 0x0000FF00) << 8) | \ - (((x) & 0x000000FF) << 24) ) - -#endif - - + #pragma once int invert_endianness(int number);