diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-23 11:27:00 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-10-23 11:27:00 +0800 |
commit | 8c6953fda5633f09a7d2241b3b062d202c994a4a (patch) | |
tree | 6f4a7ed1d72135262176f00da7130c9df6aa3da1 | |
parent | 5ff0600fafe917a9b692283f18d6b666af214538 (diff) | |
download | pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.tar pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.tar.gz pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.tar.bz2 pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.tar.lz pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.tar.xz pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.tar.zst pttbbs-8c6953fda5633f09a7d2241b3b062d202c994a4a.zip |
refine conditional compiles
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5144 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 1b112a23..d468237a 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -119,6 +119,7 @@ modify_dir_lite( return 0; } +#ifdef USE_EDIT_HISTORY static int add_to_post_history( const char *direct, const char *basename, @@ -158,6 +159,7 @@ add_to_post_history( } return -1; } +#endif static void check_locked(fileheader_t *fhdr) @@ -3541,6 +3543,7 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln return FULLUPDATE; } +#ifdef USE_EDIT_HISTORY static int view_post_history(int ent, const fileheader_t * fhdr, const char *direct) { @@ -3588,6 +3591,15 @@ view_post_history(int ent, const fileheader_t * fhdr, const char *direct) return FULLUPDATE; } +#else // USE_EDIT_HISTORY + +static int +view_post_history(int ent, const fileheader_t * fhdr, const char *direct) { + return DONOTHING; +} + +#endif // USE_EDIT_HISTORY + #ifdef OUTJOBSPOOL /* ¬ÝªO³Æ¥÷ */ static int |