summaryrefslogtreecommitdiff
path: root/devel/devIL/patches/patch-src-IL_include_il__endian.h
blob: db32cc17d61d9f6cf2e487fec293ad89448c9d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-src-IL_include_il__endian.h,v 1.1 2013/05/04 12:43:00 joerg Exp $

--- src-IL/include/il_endian.h.orig	2013-05-03 17:18:05.000000000 +0000
+++ src-IL/include/il_endian.h
@@ -39,8 +39,9 @@
 	#define BigDouble(d)  
 #else
 	#undef __BIG_ENDIAN__
-	#undef __LITTLE_ENDIAN__  // Not sure if it's defined by any compiler...
-	#define __LITTLE_ENDIAN__
+#ifndef __LITTLE_ENDIAN__ 
+#define __LITTLE_ENDIAN__
+#endif
 	#define Short(s)  
 	#define UShort(s)  
 	#define Int(i)