Closed take-cheeze closed 7 years ago
Oh, good. Please wait for my checking.
Build error on Windows.
Could you please add this?
diff --git a/src/mrb_uv.c b/src/mrb_uv.c
index 73ab6cf..35a8a08 100644
--- a/src/mrb_uv.c
+++ b/src/mrb_uv.c
@@ -1,3 +1,4 @@
+#define _WIN32_WINNT 0x0600
#include "mruby/uv.h"
#include "mrb_uv.h"
I'm okay adding compiler flag instead.
LGTM (if you add change I mentioned). Tests passed.
Those flags is from:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netdb.h.html
Though I don't think all of them is required so I'll remove them.
Does _WIN32_WINNT
still required when I removed AI_NUMERICSERV
, AI_V4MAPPED
, AI_ALL
, AI_ADDRCONFIG
?
@mattn Removed 4 constants.
Does _WIN32_WINNT still required when I removed AI_NUMERICSERV, AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG?
If add _WIN32_WINNT >= 0x0600, compilation error is removed. I want to keep it on Windows.
@mattn reverted constants remove and added _WIN32_WINNT
define.
Thank you. I'll look it after takoyaki party.
On 9/23/17, Takeshi Watanabe notifications@github.com wrote:
@mattn reverted constants remove and added
_WIN32_WINNT
define.-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/mattn/mruby-uv/pull/77#issuecomment-331619469
--
🐙
Thanks! :octocat:
scandir
when file system always return file typeunknown
.UV::FS.scandir
which makeUV::FS.readdir
an alias.