From 462b1d1e9bbbb5d487d728b7d8333a946c164861 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 20 Jan 2014 21:38:29 -0500 Subject: [PATCH] Prevent name mangling on C++ --- limelight-common/Limelight.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/limelight-common/Limelight.h b/limelight-common/Limelight.h index aac10da..7a1a2ef 100644 --- a/limelight-common/Limelight.h +++ b/limelight-common/Limelight.h @@ -1,5 +1,9 @@ #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #define IP_ADDRESS unsigned int typedef struct _STREAM_CONFIGURATION { @@ -34,4 +38,8 @@ typedef struct _DECODER_RENDERER_CALLBACKS { } DECODER_RENDERER_CALLBACKS, *PDECODER_RENDERER_CALLBACKS; int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECODER_RENDERER_CALLBACKS drCallbacks); -void LiStopConnection(void); \ No newline at end of file +void LiStopConnection(void); + +#ifdef __cplusplus +} +#endif \ No newline at end of file