diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-28 16:16:25 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-28 16:16:25 +0800 |
commit | fcc1d26b5caa091185e7238434d06dc00230dd67 (patch) | |
tree | 7c97005f364bd1bd479d610654cb1e177bcc7e3f | |
parent | 94ee5b0f546ecdb6558a4d24028c728997c175e2 (diff) | |
download | pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.tar pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.tar.gz pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.tar.bz2 pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.tar.lz pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.tar.xz pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.tar.zst pttbbs-fcc1d26b5caa091185e7238434d06dc00230dd67.zip |
missing include
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1381 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/convert.c | 3 | ||||
-rw-r--r-- | sample/pttbbs.conf | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c index 6e620e23..133c249d 100644 --- a/mbbsd/convert.c +++ b/mbbsd/convert.c @@ -1,4 +1,5 @@ /* $Id: convert.c 1374 2003-11-27 14:11:40Z victor $ */ +#include "bbs.h" /* * The following code is copied and modified from "autoconvert" with GPL. */ @@ -55,7 +56,7 @@ static void b2g(char *s) s[0] = BtoG_bad1; s[1] = BtoG_bad2; } -signed char *gb2big(unsigned char *s, int plen) +unsigned char *gb2big(unsigned char *s, int plen) { unsigned char c = 0; return hzconvert(s, &plen, &c, g2b); diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf index 2bfd3b98..20b6b30b 100644 --- a/sample/pttbbs.conf +++ b/sample/pttbbs.conf @@ -94,6 +94,9 @@ 須要加跑 shmctl timed 來提供時間 */ //#define OUTTA_TIMER +/* 若定義, 則開啟正體中文轉簡體中文的功能 */ +//#define GB_CONVERT + /* 若定義, 則啟動 bbs中連至 BLOG 的 interface 請參閱 pttbbs/blog/ */ //#define BLOGDB_HOST "10.1.1.1" |