From: Eric Pouech <epouech@codeweavers.com> Signed-off-by: Eric Pouech <epouech@codeweavers.com> --- include/bcrypt.h | 8 ++++++++ include/memoryapi.h | 13 +++++++++++++ include/roerrorapi.h | 8 ++++++++ 3 files changed, 29 insertions(+) diff --git a/include/bcrypt.h b/include/bcrypt.h index b0cdf6e27a3..bf22f6dfb9b 100644 --- a/include/bcrypt.h +++ b/include/bcrypt.h @@ -44,6 +44,10 @@ typedef LONG NTSTATUS; #define BCRYPT_SUCCESS(st) ((NTSTATUS)(st) >= 0) #endif +#ifdef __cplusplus +extern "C" { +#endif + #if defined(_MSC_VER) || defined(__MINGW32__) #define BCRYPT_ALGORITHM_NAME L"AlgorithmName" #define BCRYPT_AUTH_TAG_LENGTH L"AuthTagLength" @@ -604,4 +608,8 @@ NTSTATUS WINAPI BCryptSetProperty(BCRYPT_HANDLE, LPCWSTR, PUCHAR, ULONG, ULONG); NTSTATUS WINAPI BCryptSignHash(BCRYPT_KEY_HANDLE, void *, PUCHAR, ULONG, PUCHAR, ULONG, ULONG *, ULONG); NTSTATUS WINAPI BCryptVerifySignature(BCRYPT_KEY_HANDLE, void *, UCHAR *, ULONG, UCHAR *, ULONG, ULONG); +#ifdef __cplusplus +} +#endif + #endif /* __WINE_BCRYPT_H */ diff --git a/include/memoryapi.h b/include/memoryapi.h index 2cfcdd5a273..79c01aaed23 100644 --- a/include/memoryapi.h +++ b/include/memoryapi.h @@ -14,6 +14,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#ifndef _MEMORY_API_H_ +#define _MEMORY_API_H_ + +#ifdef __cplusplus +extern "C" { +#endif + typedef enum WIN32_MEMORY_INFORMATION_CLASS { MemoryRegionInfo @@ -44,3 +51,9 @@ typedef struct WIN32_MEMORY_REGION_INFORMATION WINBASEAPI HANDLE WINAPI CreateFileMapping2(HANDLE,LPSECURITY_ATTRIBUTES,ULONG,ULONG,ULONG,ULONG64,const WCHAR*,MEM_EXTENDED_PARAMETER*,ULONG); WINBASEAPI DWORD WINAPI DiscardVirtualMemory(void *addr, SIZE_T size); WINBASEAPI BOOL WINAPI QueryVirtualMemoryInformation(HANDLE process,const void *addr, WIN32_MEMORY_INFORMATION_CLASS info_class, void *info, SIZE_T size, SIZE_T *ret_size); + +#ifdef __cplusplus +} +#endif + +#endif /* _MEMORY_API_H_ */ diff --git a/include/roerrorapi.h b/include/roerrorapi.h index 0bab6651d2b..f154c679418 100644 --- a/include/roerrorapi.h +++ b/include/roerrorapi.h @@ -23,6 +23,10 @@ #include <restrictederrorinfo.h> #include <rpc.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { RO_ERROR_REPORTING_NONE = 0x0, @@ -42,4 +46,8 @@ HRESULT WINAPI RoReportUnhandledError(IRestrictedErrorInfo *info); HRESULT WINAPI RoSetErrorReportingFlags(UINT32 flags); HRESULT WINAPI SetRestrictedErrorInfo(IRestrictedErrorInfo *info); +#ifdef __cplusplus +} +#endif + #endif /* _ROERROR_H */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10303