From 302ae4427b04a25e4f1ee8acadbb05bf902f47f7 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 06 七月 2020 19:09:58 +0800 Subject: [PATCH] update --- include/usgcommon/usg_typedef.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/include/usg_typedef.h b/include/usgcommon/usg_typedef.h similarity index 85% rename from common/include/usg_typedef.h rename to include/usgcommon/usg_typedef.h index 7976c59..55796e1 100644 --- a/common/include/usg_typedef.h +++ b/include/usgcommon/usg_typedef.h @@ -40,10 +40,13 @@ #define DIR_MODE (FILE_MODE | S_IXUSR | S_IXGRP | S_IXOTH) -#define min(a,b) ((a) < (b) ? (a) : (b)) -#define max(a,b) ((a) > (b) ? (a) : (b)) +#define MIN(a,b) ((a) < (b) ? (a) : (b)) +#define MAX(a,b) ((a) > (b) ? (a) : (b)) - + +/* Misc constants */ +#define MAXLINE 1024 /* Max text line length */ +#define MAXBUF 8192 /* Max I/O buffer size */ #ifdef __cplusplus } -- Gitblit v1.8.0