From 9874df8a27d1e23c4e3c2b2347760e9854c06c1c Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 10 Jun 2009 08:46:08 +0000 Subject: * IDLEN macro cannot be quoted - because friend.c is using toStr(IDLEN) as #IDLEN. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4539 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/pttstruct.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/pttstruct.h b/include/pttstruct.h index fdfbb9c3..f560378c 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -7,7 +7,9 @@ #include "config.h" // various sizes in SHM #include "statistic.h" // for MAX_STATS -#define IDLEN (12) /* Length of bid/uid */ +// warning: because some other places is using #IDLEN to convert as string, +// so don't quote it - otherwise those code will fail. +#define IDLEN 12 /* Length of bid/uid */ #define IPV4LEN (15) /* a.b.c.d form */ // GCC pragma to prevent paddings -- cgit v1.2.3