summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChoe Hwanjin <choe.hwanjin@gmail.com>2006-11-27 23:44:57 +0900
committerChoe Hwanjin <choe.hwanjin@gmail.com>2006-11-27 23:44:57 +0900
commitb55ceb9aa07391eae39404ac17559306f1ee68df (patch)
tree0cba783445c35d5b563ebc0ef1b5a8900cbd6c55
parenta444ce20b20407d7720572c6558ae742423a5a28 (diff)
downloadlibhangul-b55ceb9aa07391eae39404ac17559306f1ee68df.tar.gz
* hangulconfig.h 인스톨 룰 추가
* hangul.h에서 hangulconfig.h를 include * ucschar를 int type으로 변경 * inttypes.h를 hangulinputcontext.c에서 직접 include하게 함 git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@100 8f00fcd2-89fc-0310-932e-b01be5b65e01
-rw-r--r--Makefile.am3
-rw-r--r--hangul/hangul.h5
-rw-r--r--hangul/hangulinputcontext.c1
3 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index d88d6e7..9b77d02 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,8 @@
SUBDIRS = hangul data bindings test
+hangulconfdir = $(includedir)/hangul-1.0
+hangulconf_DATA = hangulconfig.h
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libhangul.pc
diff --git a/hangul/hangul.h b/hangul/hangul.h
index 3b22c96..b38a77d 100644
--- a/hangul/hangul.h
+++ b/hangul/hangul.h
@@ -19,8 +19,7 @@
#ifndef _HANGUL_H_
#define _HANGUL_H_
-#include <stdbool.h>
-#include <inttypes.h>
+#include <hangulconfig.h>
#ifdef __cplusplus
extern "C" {
@@ -32,7 +31,7 @@ enum {
HANGUL_JUNGSEONG_FILLER = 0x1160 /* hangul jungseong filler */
};
-typedef uint32_t ucschar;
+typedef unsigned int ucschar;
bool hangul_is_choseong(ucschar c);
bool hangul_is_jungseong(ucschar c);
diff --git a/hangul/hangulinputcontext.c b/hangul/hangulinputcontext.c
index ceee02a..87c6668 100644
--- a/hangul/hangulinputcontext.c
+++ b/hangul/hangulinputcontext.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#include <inttypes.h>
#include "hangul.h"