On 09.06.2015 09:57, Nikolay Sivov wrote:
On 09.06.2015 10:32, Sebastian Lackner wrote:
On 09.06.2015 09:28, Nikolay Sivov wrote:
On 09.06.2015 10:09, Sebastian Lackner wrote:
A member called DeleteFile cannot be accessed because its defined as DeleteFile_must_be_suffixed_with_W_or_A_in_this_context.
include/winbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This is how it's defined in SDK though, I don't think you can change that.
The same trick is also used for the ntdll equivalent structure (FILE_DISPOSITION_INFORMATION). If there is a better method to solve this, any hints are appreciated.
Will something like that work for you http://source.winehq.org/git/wine.git/blob/HEAD:/include/dwrite.idl#l36 ?
The problem is that DeleteFile is defined in the same header, shortly after the struct definition. Do you think its fine to do the #undef in the *.c files where this struct is used? Or should we put the whole definition of DeleteFile into "#ifndef WINE_NO_UNICODE_MACROS"?