digitalmars.D.bugs - [Issue 15322] New: version(Unicode) should affect only default aliases
- via Digitalmars-d-bugs (24/24) Nov 12 2015 https://issues.dlang.org/show_bug.cgi?id=15322
https://issues.dlang.org/show_bug.cgi?id=15322 Issue ID: 15322 Summary: version(Unicode) should affect only default aliases Product: D Version: D2 Hardware: All URL: https://msdn.microsoft.com/en-us/library/windows/deskt op/ms682627%28v=vs.85%29.aspx OS: Windows Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody puremagic.com Reporter: dfj1esp02 sneakemail.com If version(Unicode) is not defined, windows bindings should still have unicode declarations. Declaration of PENUM_PAGE_FILE_CALLBACK in psapi is incorrectly versioned, as a consequence unicode function EnumPageFilesW is declared as taking ANSI callback. Unicode and ANSI versions of PENUM_PAGE_FILE_CALLBACK (PENUM_PAGE_FILE_CALLBACKW and PENUM_PAGE_FILE_CALLBACKA respectively) should be declared unconditionally and PENUM_PAGE_FILE_CALLBACK alias should be versioned. --
Nov 12 2015