From 599775e83a382c928d30c05e245b7438f6cae18e Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 30 Apr 2020 16:03:22 +0200 Subject: [PATCH] acp: Add missing `extern "C"` declarations to allow usage in C++ --- include/nn/acp/device.h | 8 ++++++++ include/nn/acp/save.h | 8 ++++++++ include/nn/acp/title.h | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/include/nn/acp/device.h b/include/nn/acp/device.h index 1ae6914..8938235 100644 --- a/include/nn/acp/device.h +++ b/include/nn/acp/device.h @@ -8,9 +8,17 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + typedef int32_t ACPDeviceType; ACPResult ACPCheckApplicationDeviceEmulation(BOOL* emulation); +#ifdef __cplusplus +} +#endif + /** @} */ diff --git a/include/nn/acp/save.h b/include/nn/acp/save.h index 32a2bc1..591661c 100644 --- a/include/nn/acp/save.h +++ b/include/nn/acp/save.h @@ -11,6 +11,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + ACPResult ACPCreateSaveDir(uint32_t persistentId, ACPDeviceType deviceType); @@ -33,4 +37,8 @@ ACPUnmountExternalStorage(); ACPResult ACPUnmountSaveDir(); +#ifdef __cplusplus +} +#endif + /** @} */ diff --git a/include/nn/acp/title.h b/include/nn/acp/title.h index b9a6f54..2058444 100644 --- a/include/nn/acp/title.h +++ b/include/nn/acp/title.h @@ -11,6 +11,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + typedef uint64_t ACPTitleId; typedef struct ACPMetaXml ACPMetaXml; @@ -244,4 +248,8 @@ ACPGetTitleMetaDirByDevice(ACPTitleId titleId, size_t directoryLen, ACPDeviceType deviceType); +#ifdef __cplusplus +} +#endif + /** @} */