From 8e80f8dfbc1d07fbc951e654d1143e10c866d638 Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 4 Jun 2004 03:38:03 +0000 Subject: Fix compile error. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2050 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 1 + include/pttstruct.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/proto.h b/include/proto.h index 28e60f78..a0b22fc2 100644 --- a/include/proto.h +++ b/include/proto.h @@ -188,6 +188,7 @@ int dice_main(void); int vedit(char *fpath, int saveheader, int *islocal); void write_header(FILE *fp); void addsignature(FILE *fp, int ifuseanony); +char *strcasestr(const char *big, const char *little); void auto_backup(void); void restore_backup(void); char *ask_tmpbuf(int y); diff --git a/include/pttstruct.h b/include/pttstruct.h index 7a419c42..c32c615b 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -123,12 +123,15 @@ typedef struct userec_t { #define REJECT_OUTTAMAIL (cuser.uflag2 & REJ_OUTTAMAIL) #define REJ_QUESTION 0x800 /* true if don't want to be angel for a while */ #define REJECT_QUESTION (cuser.uflag2 & REJ_QUESTION) + +#ifdef PLAY_ANGEL #define ANGEL_MASK 0x3000 #define ANGEL_R_MAEL 0x1000 /* true if reject male */ #define ANGEL_R_FEMAEL 0x2000 /* true if reject female */ #define ANGEL_STATUS() ((cuser.uflag2 & ANGEL_MASK) >> 12) #define ANGEL_SET(X) (cuser.uflag2 = (cuser.uflag2 & ~ANGEL_MASK) | \ - ((X & 3) << 12)) + (((X) & 3) << 12)) +#endif #define BTLEN 48 /* Length of board title */ -- cgit v1.2.3