From fa4da639c06685344775107fb5461d30bdef7cc5 Mon Sep 17 00:00:00 2001 From: zhaoyanggh Date: Mon, 15 Nov 2021 19:24:13 +0800 Subject: [PATCH] win compile --- src/kit/taosdemo/inc/demo.h | 2 +- src/kit/taosdemo/src/demoUtil.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kit/taosdemo/inc/demo.h b/src/kit/taosdemo/inc/demo.h index 359d583bf5..ff605afcbb 100644 --- a/src/kit/taosdemo/inc/demo.h +++ b/src/kit/taosdemo/inc/demo.h @@ -58,7 +58,7 @@ extern char configDir[]; #define STR_INSERT_INTO "INSERT INTO " -#define _WINSOCK_DEPRECATED_NO_WARNINGS 1 + #define MAX_RECORDS_PER_REQ 32766 #define HEAD_BUFF_LEN \ diff --git a/src/kit/taosdemo/src/demoUtil.c b/src/kit/taosdemo/src/demoUtil.c index 2825fc5512..766ed3dfc2 100644 --- a/src/kit/taosdemo/src/demoUtil.c +++ b/src/kit/taosdemo/src/demoUtil.c @@ -74,7 +74,8 @@ void ERROR_EXIT(const char *msg) { #ifdef WINDOWS #define _CRT_RAND_S - +#define _WINSOCK_DEPRECATED_NO_WARNINGS 1 +#include #include #include -- GitLab