From e0773560ef7b6966aafd92471912fd6880f0d7c4 Mon Sep 17 00:00:00 2001 From: Vitor Ramos Date: Mon, 18 Nov 2024 23:40:39 +0100 Subject: [PATCH] include: Add cpp header guard to the pathcch.h. Signed-off-by: Nikolay Sivov --- include/pathcch.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/pathcch.h b/include/pathcch.h index 72fbe2ad23b..c5df7021126 100644 --- a/include/pathcch.h +++ b/include/pathcch.h @@ -16,6 +16,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#ifdef __cplusplus +extern "C" { +#endif + #define PATHCCH_NONE 0x00 #define PATHCCH_ALLOW_LONG_PATHS 0x01 #define PATHCCH_FORCE_ENABLE_LONG_NAME_PROCESS 0x02 @@ -48,3 +52,7 @@ WINBASEAPI HRESULT WINAPI PathCchSkipRoot(const WCHAR *path, const WCHAR **root_ WINBASEAPI HRESULT WINAPI PathCchStripPrefix(WCHAR *path, SIZE_T size); WINBASEAPI HRESULT WINAPI PathCchStripToRoot(WCHAR *path, SIZE_T size); WINBASEAPI BOOL WINAPI PathIsUNCEx(const WCHAR *path, const WCHAR **server); + +#ifdef __cplusplus +} +#endif