diff options
author | Choe Hwanjin <choe.hwanjin@gmail.com> | 2007-07-11 23:36:13 +0900 |
---|---|---|
committer | Choe Hwanjin <choe.hwanjin@gmail.com> | 2007-07-11 23:36:13 +0900 |
commit | 603f1c049601b08f2395f93a3e8a81ff24f9db23 (patch) | |
tree | f200c0d2eb10b271fa9f904d361e6afa847e6111 /test | |
parent | 2fb39b2a0bdbcf779bd51ce0b71a7e2de94a05dd (diff) | |
download | libhangul-603f1c049601b08f2395f93a3e8a81ff24f9db23.tar.gz |
AC_C_BIGENDIAN 사용
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@132 8f00fcd2-89fc-0310-932e-b01be5b65e01
Diffstat (limited to 'test')
-rw-r--r-- | test/hangul.c | 11 |
1 files changed, 7 insertions, 4 deletions
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 <config.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> #include <iconv.h> -#include <endian.h> #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) |