Andrew Talbot Andrew.Talbot@talbotville.com writes:
I am getting "unrecognized identifier" messages when looking at ntdll/directory.c where it calls the S_ISCHR() and S_ISDIR() macros, these are caused by the identifiers like _S_IFMT in "wine/port.h" seemingly not being defined. The only place, on my system, where I could find definitions of these identifiers was in "include/msvcrt/sys/stat.h". Are files such as ntdll/directory.c and ntdll/file.c getting to know about these identifiers via a route that a static checker cannot follow?
On any decent Unix the S_ISCHR etc. macros are defined by sys/stat.h, so our defines are never used.