[PATCH 0/1] MR1421: kernelbase: add c++ header guards
pathcch is missing c++ header guars, which leads to missing symbols when trying to link using winebuild -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1421
From: vitorramos <ramos.vitor89(a)gmail.com> --- include/pathcch.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/pathcch.h b/include/pathcch.h index 0c2dc63c41b..c17fb861d3c 100644 --- a/include/pathcch.h +++ b/include/pathcch.h @@ -26,6 +26,10 @@ #define PATHCCH_MAX_CCH 0x8000 +#ifdef __cplusplus +extern "C" { +#endif + HRESULT WINAPI PathAllocCanonicalize(const WCHAR *path_in, DWORD flags, WCHAR **path_out); HRESULT WINAPI PathAllocCombine(const WCHAR *path1, const WCHAR *path2, DWORD flags, WCHAR **out); HRESULT WINAPI PathCchAddBackslash(WCHAR *path, SIZE_T size); @@ -48,3 +52,7 @@ HRESULT WINAPI PathCchSkipRoot(const WCHAR *path, const WCHAR **root_end); HRESULT WINAPI PathCchStripPrefix(WCHAR *path, SIZE_T size); HRESULT WINAPI PathCchStripToRoot(WCHAR *path, SIZE_T size); BOOL WINAPI PathIsUNCEx(const WCHAR *path, const WCHAR **server); + +#ifdef __cplusplus +} +#endif \ No newline at end of file -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1421
Nikolay Sivov (@nsivov) commented about include/pathcch.h:
#define PATHCCH_MAX_CCH 0x8000
+#ifdef __cplusplus +extern "C" { +#endif
In SDK header this opening comes earlier, covering everything in the file. We should do that too, and then move option flags to enum as SDK has it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1421#note_16203
participants (3)
-
Nikolay Sivov (@nsivov) -
Vitor Ramos (@VitorRamos) -
vitorramos