Open swisspol opened 9 years ago
sock_t
V7_ENABLE_SOCKET
V7_ENABLE__File__list
diff --git a/v7/v7.c b/v7/v7.c index 00a0031..ab0a335 100644 --- a/v7/v7.c +++ b/v7/v7.c @@ -570,7 +570,7 @@ int v7_get_stack_avail_lwm(struct v7 *v7); #define V7_ENABLE__Date__toJSON 1 #define V7_ENABLE__Date__toLocaleString 1 #define V7_ENABLE__Date__toString 1 -#define V7_ENABLE__File__list 1 +#define V7_ENABLE__File__list 0 #define V7_ENABLE__Function__bind 1 #define V7_ENABLE__Function__call 1 #define V7_ENABLE__Math 1 @@ -1155,7 +1155,9 @@ typedef short int16_t; typedef unsigned short uint16_t; typedef __int64 int64_t; typedef unsigned __int64 uint64_t; +#ifdef V7_ENABLE_SOCKET typedef SOCKET sock_t; +#endif typedef uint32_t in_addr_t; #ifndef UINT16_MAX #define UINT16_MAX 65535 @@ -6274,6 +6276,7 @@ void to_wchar(const char *path, wchar_t *wbuf, size_t wbuf_len) { * All rights reserved */ +#if V7_ENABLE__File__list #ifndef EXCLUDE_COMMON /* Amalgamated: #include "osdep.h" */ @@ -6359,6 +6362,7 @@ struct dirent *readdir(DIR *dir) { #endif #endif /* EXCLUDE_COMMON */ +#endif /* V7_ENABLE__File__list */ #ifdef V7_MODULE_LINES #line 1 "./src/../../common/ubjson.c" /**/
sock_t
unlessV7_ENABLE_SOCKET
is enabled to work around #521V7_ENABLE__File__list
on WinRT because of #520V7_ENABLE__File__list
is enabled