From 29504570b90507ef866dcc9ffe550efefdd5b4b4 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 15 Apr 2012 06:09:22 +0000 Subject: Fix build failure for clang+debug. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5658 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/Makefile | 1 + pttbbs/mbbsd/fav.c | 3 +++ pttbbs/mbbsd/vtuikit.c | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/pttbbs/mbbsd/Makefile b/pttbbs/mbbsd/Makefile index 97f6402d..4477a736 100644 --- a/pttbbs/mbbsd/Makefile +++ b/pttbbs/mbbsd/Makefile @@ -93,6 +93,7 @@ all: $(PROG) $(PROG): $(OBJS) sh $(SRCROOT)/util/newvers.sh @printf "\033[0;1;32m" + @[ -z "$(DEBUG)" ] || printf "\033[31m+DEBUG \033[32m" @[ -z "$(USE_BBSLUA)" ] || echo -n "+BBSLUA " @[ -z "$(USE_PFTERM)" ] || echo -n "+PFTERM " @[ -z "$(USE_CONVERT)" ] || echo -n "+CONVERT " diff --git a/pttbbs/mbbsd/fav.c b/pttbbs/mbbsd/fav.c index 5c1b94fd..123563ae 100644 --- a/pttbbs/mbbsd/fav.c +++ b/pttbbs/mbbsd/fav.c @@ -35,6 +35,9 @@ * (FAVH_ADM_TAG == 1, FAVH_FAV == 0)¡C */ +#ifdef DEBUG +#define inline +#endif /* the total number of items, every level. */ static int fav_number; diff --git a/pttbbs/mbbsd/vtuikit.c b/pttbbs/mbbsd/vtuikit.c index 9d9d6951..b116aa72 100644 --- a/pttbbs/mbbsd/vtuikit.c +++ b/pttbbs/mbbsd/vtuikit.c @@ -47,6 +47,10 @@ // otherwise you need to use real strlen. #define MACROSTRLEN(x) (sizeof(x)-1) +#ifdef DEBUG +#define inline +#endif + // ---- UTILITIES ---------------------------------------------------- inline void outnc(int n, unsigned char c) -- cgit v1.2.3