<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Jai ++<div><br></div><div>Don't worry about the changes for DT_DIR/DT_REG … i had already planned on doing something for this using stat, and i do have a mingw toolchain set up that i'm working with.</div><div><br></div><div>thanks,</div><div>++ kirk</div><div><br><div><div>On 2011-Feb-4, at 9:02 PM, ext Jai Menon wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello Kirk,<br><br>On Fri, Feb 4, 2011 at 10:29 PM, <<a href="mailto:kirk.beitz@nokia.com">kirk.beitz@nokia.com</a>> wrote:<br><blockquote type="cite">Jai ++<br></blockquote><blockquote type="cite">I am experiencing another problem in relation to this same code: the d_type<br></blockquote><blockquote type="cite">is also not mentioned in the URL you site, and the build i am attempting<br></blockquote><blockquote type="cite">under MinGW fails because of this.<br></blockquote><br>Indeed, d_type is a POSIX extension as well but you'll pretty much<br>find it on all *nix/BSD variants. I guess you're out of luck on<br>windows because I doubt whether mingw (or even mingw64 and cygwin)<br>will get proper dirent support anytime soon. I guess applications<br>either perform a readdir followed by a stat (so that takes care of<br>DT_DIR and DT_REG) or have full-blown dirent emulation code (example<br>msysgit) which uses windows API calls. The later approach should be<br>sufficient for the usage in FileSpec.cpp, even if not all file types<br>are supported.<br><br><blockquote type="cite">This patch looks like a reasonable start. I may have to build onto it to<br></blockquote><blockquote type="cite">make it more cross-platform friendly with windows.<br></blockquote><br>I could try a few hacks but I don't have access to a mingw cross<br>toolchain right now. It might get a bit ugly though.<br><br>-- <br>Jai Menon<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="font-size: 11px; "><font class="Apple-style-span" face="Monaco"><span class="Apple-style-span" style="font-family: Helvetica; "><font class="Apple-style-span" face="Monaco"><br class="Apple-interchange-newline">++ kirk beitz : nokia : austin + san diego </font><span class="Apple-style-span" style="font-family: Monaco; ">: <a href="mailto:kirk.beitz@nokia.com">kirk.beitz@nokia.com</a> ++</span></span></font></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>