From b70143f4e3928198724dd481c127c507bf90ef69 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 10 Jan 2022 15:34:13 +0200 Subject: [PATCH] util/u_process: protect entrypoints for c++ Signed-off-by: Lionel Landwerlin Reviewed-by: Rohan Garg Acked-by: Antonio Caggiano Part-of: --- src/util/u_process.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/u_process.h b/src/util/u_process.h index 88b80e5ec12..51b06056614 100644 --- a/src/util/u_process.h +++ b/src/util/u_process.h @@ -30,10 +30,18 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + const char * util_get_process_name(void); size_t util_get_process_exec_path(char* process_path, size_t len); +#ifdef __cplusplus +} /* extern C */ +#endif + #endif