提交 4f3e8f40 编写于 作者: S Shengliang Guan

Merge branch 'feature/ad' of https://github.com/taosdata/TDengine into feature/ad

CMAKE_MINIMUM_REQUIRED(VERSION 2.8) CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(TDengine) PROJECT(TDengine)
IF (TD_LINUX) IF (TD_WINDOWS)
INCLUDE_DIRECTORIES(inc) SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /WX-")
AUX_SOURCE_DIRECTORY(src SRC) SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /WX-")
ADD_LIBRARY(z ${SRC}) ENDIF()
ENDIF ()
\ No newline at end of file INCLUDE_DIRECTORIES(inc)
AUX_SOURCE_DIRECTORY(src SRC)
ADD_LIBRARY(z ${SRC})
...@@ -130,7 +130,7 @@ int32_t taosCompressFile(char *srcFileName, char *destFileName) { ...@@ -130,7 +130,7 @@ int32_t taosCompressFile(char *srcFileName, char *destFileName) {
} }
while (!feof(srcFp)) { while (!feof(srcFp)) {
len = (uLong)fread(data, 1, COMPRESS_STEP_SIZE, srcFp); len = (int32_t)fread(data, 1, COMPRESS_STEP_SIZE, srcFp);
gzwrite(dstFp, data, len); gzwrite(dstFp, data, len);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册