提交 05b4f8b2 编写于 作者: wafwerar's avatar wafwerar

os: support-gcc4.8-compile

上级 00d34295
...@@ -52,12 +52,22 @@ IF(${TD_WINDOWS}) ...@@ -52,12 +52,22 @@ IF(${TD_WINDOWS})
ON ON
) )
ELSE () ELSE ()
include(CheckCXXCompilerFlag)
option( CHECK_CXX_COMPILER_FLAG("-std=c++13" COMPILER_SUPPORTS_CXX13)
BUILD_TEST IF(${COMPILER_SUPPORTS_CXX13})
"If build unit tests using googletest" add_definitions(-DCOMPILER_SUPPORTS_CXX13)
ON option(
) BUILD_TEST
"If build unit tests using googletest"
ON
)
ELSE ()
option(
BUILD_TEST
"If build unit tests using googletest"
OFF
)
ENDIF ()
ENDIF () ENDIF ()
option( option(
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
#include "systable.h" #include "systable.h"
#pragma GCC diagnostic push #pragma GCC diagnostic push
#ifdef COMPILER_SUPPORTS_CXX13
#pragma GCC diagnostic ignored "-Wformat-truncation" #pragma GCC diagnostic ignored "-Wformat-truncation"
#endif
int32_t (*queryBuildMsg[TDMT_MAX])(void *input, char **msg, int32_t msgSize, int32_t *msgLen, void*(*mallocFp)(int32_t)) = {0}; int32_t (*queryBuildMsg[TDMT_MAX])(void *input, char **msg, int32_t msgSize, int32_t *msgLen, void*(*mallocFp)(int32_t)) = {0};
int32_t (*queryProcessMsgRsp[TDMT_MAX])(void *output, char *msg, int32_t msgSize) = {0}; int32_t (*queryProcessMsgRsp[TDMT_MAX])(void *output, char *msg, int32_t msgSize) = {0};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册