diff options
-rw-r--r-- | include/proto.h | 1 | ||||
-rw-r--r-- | include/pttstruct.h | 5 |
2 files changed, 5 insertions, 1 deletions
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 */ |