summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-04-15 14:09:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-04-15 14:09:22 +0800
commit29504570b90507ef866dcc9ffe550efefdd5b4b4 (patch)
tree05a3f238786bf6e9668e5996af37147d7ad02652
parent02d627d600734417894268c6956483441e5337cb (diff)
downloadpttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.tar
pttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.tar.gz
pttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.tar.bz2
pttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.tar.lz
pttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.tar.xz
pttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.tar.zst
pttbbs-29504570b90507ef866dcc9ffe550efefdd5b4b4.zip
Fix build failure for clang+debug.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5658 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/Makefile1
-rw-r--r--pttbbs/mbbsd/fav.c3
-rw-r--r--pttbbs/mbbsd/vtuikit.c4
3 files changed, 8 insertions, 0 deletions
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)