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.
			
			
This commit is contained in:
		
							parent
							
								
									1c3f8727b2
								
							
						
					
					
						commit
						adce1f16e0
					
				| 
						 | 
					@ -1,3 +1,12 @@
 | 
				
			||||||
 | 
					2006-01-18  Eric Anholt  <anholt@FreeBSD.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* GL/glx/indirect_dispatch.c:
 | 
				
			||||||
 | 
						* GL/glx/indirect_dispatch_swap.c:
 | 
				
			||||||
 | 
						* GL/glx/indirect_util.c:
 | 
				
			||||||
 | 
						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.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2006-01-18  Adam Jackson  <ajax@freedesktop.org>
 | 
					2006-01-18  Adam Jackson  <ajax@freedesktop.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* fb/fbblt.c:
 | 
						* fb/fbblt.c:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,6 @@
 | 
				
			||||||
#include <X11/Xmd.h>
 | 
					#include <X11/Xmd.h>
 | 
				
			||||||
#include <GL/gl.h>
 | 
					#include <GL/gl.h>
 | 
				
			||||||
#include <GL/glxproto.h>
 | 
					#include <GL/glxproto.h>
 | 
				
			||||||
#include <byteswap.h>
 | 
					 | 
				
			||||||
#include <inttypes.h>
 | 
					#include <inttypes.h>
 | 
				
			||||||
#include "indirect_size.h"
 | 
					#include "indirect_size.h"
 | 
				
			||||||
#include "indirect_size_get.h"
 | 
					#include "indirect_size_get.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,14 @@
 | 
				
			||||||
#include <X11/Xmd.h>
 | 
					#include <X11/Xmd.h>
 | 
				
			||||||
#include <GL/gl.h>
 | 
					#include <GL/gl.h>
 | 
				
			||||||
#include <GL/glxproto.h>
 | 
					#include <GL/glxproto.h>
 | 
				
			||||||
 | 
					#ifdef __linux__
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					#include <sys/endian.h>
 | 
				
			||||||
 | 
					#define bswap_16 bswap16
 | 
				
			||||||
 | 
					#define bswap_32 bswap32
 | 
				
			||||||
 | 
					#define bswap_64 bswap64
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include <inttypes.h>
 | 
					#include <inttypes.h>
 | 
				
			||||||
#include "indirect_size.h"
 | 
					#include "indirect_size.h"
 | 
				
			||||||
#include "indirect_size_get.h"
 | 
					#include "indirect_size_get.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,7 +26,14 @@
 | 
				
			||||||
#include <X11/Xmd.h>
 | 
					#include <X11/Xmd.h>
 | 
				
			||||||
#include <GL/gl.h>
 | 
					#include <GL/gl.h>
 | 
				
			||||||
#include <GL/glxproto.h>
 | 
					#include <GL/glxproto.h>
 | 
				
			||||||
 | 
					#ifdef __linux__
 | 
				
			||||||
#include <byteswap.h>
 | 
					#include <byteswap.h>
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					#include <sys/endian.h>
 | 
				
			||||||
 | 
					#define bswap_16 bswap16
 | 
				
			||||||
 | 
					#define bswap_32 bswap32
 | 
				
			||||||
 | 
					#define bswap_64 bswap64
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include <inttypes.h>
 | 
					#include <inttypes.h>
 | 
				
			||||||
#include "indirect_size.h"
 | 
					#include "indirect_size.h"
 | 
				
			||||||
#include "indirect_size_get.h"
 | 
					#include "indirect_size_get.h"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue