diff options
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r-- | include/zbxtypes.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h index eb8d1a77453..f637de68f1c 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -21,10 +21,10 @@ #define ZABBIX_TYPES_H #if defined(_WINDOWS) -# define ZBX_THREAD_LOCAL __declspec(thread) +# define ZBX_THREAD_LOCAL __declspec(thread) #else -# define ZBX_THREAD_LOCAL -#endif +# define ZBX_THREAD_LOCAL +#endif #define ZBX_FS_DBL "%lf" #define ZBX_FS_DBL_EXT(p) "%." #p "lf" @@ -32,17 +32,11 @@ #define ZBX_PTR_SIZE sizeof(void *) #if defined(_WINDOWS) +# include <strsafe.h> # define zbx_stat(path, buf) __zbx_stat(path, buf) # define zbx_open(pathname, flags) __zbx_open(pathname, flags | O_BINARY) -# include <strsafe.h> -# define zbx_wsnprintf StringCchPrintf -# define zbx_strlen wcslen -# define zbx_strchr wcschr -# define zbx_strstr wcsstr -# define zbx_fullpath _wfullpath - # ifndef __UINT64_C # define __UINT64_C(x) x # endif |