This commit is contained in:
Shengliang Guan 2021-05-09 14:38:41 +08:00
parent aa1ea68b85
commit 274d420f82
3 changed files with 5 additions and 9 deletions

View File

@ -20,7 +20,7 @@
extern "C" {
#endif
#if defined(TD_DARWIN_64)
#if defined(_TD_DARWIN_64)
// specific
typedef int(*__compar_fn_t)(const void *, const void *);
@ -48,12 +48,6 @@ extern "C" {
#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)
char *stpcpy (char *dest, const char *src);
char *stpncpy (char *dest, const char *src, size_t n);

View File

@ -72,7 +72,7 @@ extern "C" {
#include <wordexp.h>
#include <wctype.h>
#if defined(TD_DARWIN_64)
#if defined(_TD_DARWIN_64)
#include <dispatch/dispatch.h>
#include "osEok.h"
#else

View File

@ -95,7 +95,9 @@ const char *taosInetNtoa(struct in_addr ipInt);
#if defined(_TD_GO_DLL_)
uint64_t htonll(uint64_t val);
#endif
#elif defined(_TD_DARWIN_64)
#endif
#if defined(_TD_DARWIN_64)
#define htobe64 htonll
#endif