openalbridge/endianness.h
changeset 2212 6b5da1a2765a
parent 2203 6bd39d75e0dd
child 2213 bd51bbf06033
--- 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 <stdio.h>
-#include <stdlib.h>
+#include "globals.h"
 
-#ifndef _WIN32
-#include <stdint.h>
-#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 <byteswap.h>
-#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);