Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/libGL/files/patch-src_mesa_main_compiler.h
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- src/mesa/main/compiler.h.orig 2016-11-10 22:05:17 UTC | |||||
+++ src/mesa/main/compiler.h | |||||
@@ -56,6 +56,9 @@ extern "C" { | |||||
#if defined(__linux__) | |||||
#include <byteswap.h> | |||||
#define CPU_TO_LE32( x ) bswap_32( x ) | |||||
+#elif defined(__FreeBSD__) | |||||
+#include <sys/endian.h> | |||||
+#define CPU_TO_LE32( x ) bswap32( x ) | |||||
#elif defined(__APPLE__) | |||||
#include <CoreFoundation/CFByteOrder.h> | |||||
#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x ) |