From 603f1c049601b08f2395f93a3e8a81ff24f9db23 Mon Sep 17 00:00:00 2001 From: Choe Hwanjin Date: Wed, 11 Jul 2007 23:36:13 +0900 Subject: [PATCH] =?utf8?q?AC=5FC=5FBIGENDIAN=20=EC=82=AC=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@132 8f00fcd2-89fc-0310-932e-b01be5b65e01 --- configure.ac | 1 + test/hangul.c | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6969551..09b5ac6 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,7 @@ AC_CHECK_HEADERS([stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL +AC_C_BIGENDIAN AC_C_CONST AC_C_INLINE AC_TYPE_UINT32_T diff --git a/test/hangul.c b/test/hangul.c index b44b76c..d9a0f30 100644 --- a/test/hangul.c +++ b/test/hangul.c @@ -1,15 +1,18 @@ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include #include -#include #include "../hangul/hangul.h" -#if __BYTE_ORDER == __LITTLE_ENDIAN -#define UCS4 "UCS-4LE" -#else +#ifdef WORDS_BIGENDIAN #define UCS4 "UCS-4BE" +#else +#define UCS4 "UCS-4LE" #endif bool filter(ucschar *str, ucschar cho, ucschar jung, ucschar jong, void *data) -- 2.7.4