patches/libhangul-01-endian.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 353 70b47e90db3f
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- libhangul-0.0.6/test/hangul.c.orig	2007-07-27 09:57:30.859894115 +0700
+++ libhangul-0.0.6/test/hangul.c	2007-07-27 10:00:38.228517640 +0700
@@ -2,14 +2,25 @@
 #include <stdlib.h>
 #include <string.h>
 #include <iconv.h>
+#if defined(sun)
+#else
 #include <endian.h>
+#endif
 
 #include "../hangul/hangul.h"
 
+#if defined(sun)
+#if defined(_BIG_ENDIAN)
+#define UCS4 "UCS-4BE"
+#else
+#define UCS4 "UCS-4LE"
+#endif 
+#else
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define UCS4 "UCS-4LE"
 #else
 #define UCS4 "UCS-4BE"
+#endif 
 #endif
 
 bool filter(ucschar *str, ucschar cho, ucschar jung, ucschar jong, void *data)