diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-10 16:46:08 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-10 16:46:08 +0800 |
commit | 9874df8a27d1e23c4e3c2b2347760e9854c06c1c (patch) | |
tree | c3feb8720f9b24e651db0772d20ac5bbc4d3c249 /include | |
parent | 3180979dbe758140484a0a0faa8da0cbaa3ed0d6 (diff) | |
download | pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.tar pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.tar.gz pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.tar.bz2 pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.tar.lz pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.tar.xz pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.tar.zst pttbbs-9874df8a27d1e23c4e3c2b2347760e9854c06c1c.zip |
* 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
Diffstat (limited to 'include')
-rw-r--r-- | include/pttstruct.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |