diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-04-16 11:27:18 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-04-16 11:27:18 +0800 |
commit | 87c52669138a2f93406d7b7fae6967955c6b8ce6 (patch) | |
tree | d958b22a5b8b041ef907a31793e115b6e65cf6c8 /mbbsd | |
parent | 4ae0244c620fd1b2808eac467dcedf9455e074e1 (diff) | |
download | pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.tar pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.tar.gz pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.tar.bz2 pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.tar.lz pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.tar.xz pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.tar.zst pttbbs-87c52669138a2f93406d7b7fae6967955c6b8ce6.zip |
fix util/birth.c
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3505 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/calendar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/calendar.c b/mbbsd/calendar.c index 2f2e5af6..60cbd59a 100644 --- a/mbbsd/calendar.c +++ b/mbbsd/calendar.c @@ -1,6 +1,8 @@ /* $Id$ */ #include "bbs.h" +#if !defined(PTTBBS_UTIL) + typedef struct event_t { int year, month, day, days; int color; @@ -324,8 +326,13 @@ calendar(void) return 0; } +#endif + int getHoroscope(int m, int d) { + if (m > 11 || m < 0) + return 1; + // 摩羯 水瓶 雙魚 白羊 金牛 雙子 巨蟹 獅子 處女 天秤 天蠍 射手 const int firstday[12] = { /* Dec. */ 22, /* Jan. */ 20, 19, 21, 20, 21, 21, 23, 23, 23, 23, 22 |