1 #if defined(WIN32) || defined(WIN64)
3 // Microsoft™ Windows™ dependent code
5 // There is one, and only one case where this is needed and that's in a Visual
6 // Studio™ environment. Even building a Windows™ executable with MXE doesn't
7 // require this. So, even though this kind of thing is POSIX, it can't be
8 // included in a Visual Studio™ environment without adding a 3rd party shim.
9 // So we've made our own shim.
11 // The shim is minimal because the code in RMAC that uses it is minimal. If it
12 // gets expanded in the future for some reason, the shim will have to expand
13 // too. :-/ But that will never happen, right? ;-)
16 #include "dirent_lose.h"
18 #define WIN32_LEAN_AND_MEAN
23 DIR * opendir(const char * name)
25 BOOL test = ((GetFileAttributesA(name) & FILE_ATTRIBUTE_DIRECTORY) != INVALID_FILE_ATTRIBUTES);
27 return (test ? &dummy : NULL);
30 int closedir(DIR * dir)