提交 274d420f 编写于 作者: S Shengliang Guan

TD-4088

上级 aa1ea68b
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
extern "C" { extern "C" {
#endif #endif
#if defined(TD_DARWIN_64) #if defined(_TD_DARWIN_64)
// specific // specific
typedef int(*__compar_fn_t)(const void *, const void *); typedef int(*__compar_fn_t)(const void *, const void *);
...@@ -48,12 +48,6 @@ extern "C" { ...@@ -48,12 +48,6 @@ extern "C" {
#endif #endif
#endif #endif
#if defined(_TD_ARM_32)
#define BUILDIN_CTZL(val) __builtin_ctzll(val)
#define BUILDIN_CLZ(val) __builtin_clz(val)
#define BUILDIN_CTZ(val) __builtin_ctz(val)
#endif
#if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32) #if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32)
char *stpcpy (char *dest, const char *src); char *stpcpy (char *dest, const char *src);
char *stpncpy (char *dest, const char *src, size_t n); char *stpncpy (char *dest, const char *src, size_t n);
......
...@@ -72,7 +72,7 @@ extern "C" { ...@@ -72,7 +72,7 @@ extern "C" {
#include <wordexp.h> #include <wordexp.h>
#include <wctype.h> #include <wctype.h>
#if defined(TD_DARWIN_64) #if defined(_TD_DARWIN_64)
#include <dispatch/dispatch.h> #include <dispatch/dispatch.h>
#include "osEok.h" #include "osEok.h"
#else #else
......
...@@ -95,7 +95,9 @@ const char *taosInetNtoa(struct in_addr ipInt); ...@@ -95,7 +95,9 @@ const char *taosInetNtoa(struct in_addr ipInt);
#if defined(_TD_GO_DLL_) #if defined(_TD_GO_DLL_)
uint64_t htonll(uint64_t val); uint64_t htonll(uint64_t val);
#endif #endif
#elif defined(_TD_DARWIN_64) #endif
#if defined(_TD_DARWIN_64)
#define htobe64 htonll #define htobe64 htonll
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册