summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/calendar.c7
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