From e0324d5a88d6ec9817607bc4d7555be94a167090 Mon Sep 17 00:00:00 2001 From: wens Date: Thu, 26 Jan 2012 13:41:36 +0000 Subject: Include Big5/Unicode conversion, for other daemons to use. The linker should be smart enough to not include it in mbbsd, if CONVERT is not used. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5524 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/common/sys/Makefile | 7 ++----- pttbbs/include/cmsys.h | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/pttbbs/common/sys/Makefile b/pttbbs/common/sys/Makefile index 8b587a3b..968ef937 100644 --- a/pttbbs/common/sys/Makefile +++ b/pttbbs/common/sys/Makefile @@ -4,11 +4,8 @@ SRCROOT= ../.. .include "$(SRCROOT)/pttbbs.mk" SRCS:= daemon.c file.c lock.c log.c net.c sort.c string.c time.c \ - crypt.c record.c vector.c telnet.c vbuf.c vtkbd.c - -.if $(WITH_CONVERT) != "NO" -SRCS+= utf8.c big5.c -.endif + crypt.c record.c vector.c telnet.c vbuf.c vtkbd.c \ + utf8.c big5.c LIB:= cmsys diff --git a/pttbbs/include/cmsys.h b/pttbbs/include/cmsys.h index b64e18b1..9b929f0f 100644 --- a/pttbbs/include/cmsys.h +++ b/pttbbs/include/cmsys.h @@ -297,7 +297,6 @@ void telnet_ctx_set_ttype_arg (TelnetCtx *ctx, void *arg); ssize_t telnet_process (TelnetCtx *ctx, unsigned char *buf, ssize_t size); -#ifdef CONVERT /* utf8.c */ int ucs2utf(uint16_t ucs2, uint8_t *utf8); int utf2ucs(uint8_t *utf8, uint16_t *pucs); @@ -306,6 +305,5 @@ int utf2ucs(uint8_t *utf8, uint16_t *pucs); extern const uint16_t b2u_table[]; extern const uint16_t u2b_table[]; extern const uint8_t b2u_ambiguous_width[]; -#endif #endif -- cgit v1.2.3