From 71820652afb45e937b263a5e6488a3ed27af1112 Mon Sep 17 00:00:00 2001 From: zzy <2450266535@qq.com> Date: Sat, 4 Nov 2023 13:46:10 +0800 Subject: [PATCH] dev 1.0.5 release --- include/ssocket.h | 8 ++++---- src/log.c | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/ssocket.h b/include/ssocket.h index ff52aed..85ed346 100644 --- a/include/ssocket.h +++ b/include/ssocket.h @@ -28,11 +28,11 @@ #ifndef SHUT_RD #define SHUT_RD SD_RECEIVE #endif -#ifndef SHUT_WD -#define SHUT_WD SD_SEND +#ifndef SHUT_WR +#define SHUT_WR SD_SEND #endif -#ifndef SHUT_RDWD -#define SHUT_RDWD SD_BOTH +#ifndef SHUT_RDWR +#define SHUT_RDWR SD_BOTH #endif //#define socklen_t int diff --git a/src/log.c b/src/log.c index 405f10f..25d046e 100644 --- a/src/log.c +++ b/src/log.c @@ -5,15 +5,14 @@ #include #if _OS_WIN -#define LOG_COLOR(code) \033[##code##m #elif _OS_LINUX -#define LOG_COLOR(code) \x1b\x5b##code##m #else #error "Not Supported Operator System" #endif +#define LOG_COLOR(code) \033\133##code##m #define LOG_COLOR_TRACE LOG_COLOR(94) #define LOG_COLOR_DEBUG LOG_COLOR(36) #define LOG_COLOR_INFO LOG_COLOR(32)