Opened 4 years ago
Last modified 4 years ago
#13545 new Patches
Missing SAL-Präfixes for windows-function-imports.
Reported by: | Owned by: | Andrey Semashev | |
---|---|---|---|
Milestone: | To Be Determined | Component: | winapi |
Version: | Boost 1.67.0 | Severity: | Cosmetic |
Keywords: | SAL Präfixes. | Cc: |
Description
Moin Moin. Regarding "boost\winapi\dll.hpp" I wanted to mention, that MSVC and ICL are mourning. The solution seemed to be to add the SAL-Präfixes for windows-function-imports, that MS always adds to its SDK-Headers. Maybe it is possible to amend the file or to skip the declarations, if an according header can be included from the Windows-10-SDK. A am attaching my version.
Tschüß,
Michael.
P.S.: I would have been registering an account in order to verify myself, if I had seen an according link.
Attachments (2)
Change History (5)
by , 4 years ago
comment:1 by , 4 years ago
by , 4 years ago
comment:2 by , 4 years ago
I don't quite understand what the problem is. If you have a compilation failure, please provide the error message and what compiler you are using.
The attached files use some markup that apparently relies on Windows SDK macros, which are not defined by Boost.WinAPI. As such, these files are not correct. An I really don't want to add an equivalent markup to Boost.WinAPI because it is extremely non-portable, even between different versions of MSVC.
P².S.: In "boost\winapi\time.hpp" One even does need an additional <windows.h>-include at line 18.: # ifndef _WINDOWS_ # include<windows.h> # endif