TD-4088
This commit is contained in:
parent
aa1ea68b85
commit
274d420f82
|
@ -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" {
|
||||||
#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" {
|
||||||
#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);
|
||||||
#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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue