From a00059bede6fa7afca9ee25f1ddb208367c4c36d Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 28 Aug 2008 13:31:36 +0000 Subject: [PATCH] Corrected a problem that debug_printf could not be implemented from c++ code because it did not contain the de-munging of c++ names. Thank you to Cameron C.! --- bacnet-stack/include/debug.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bacnet-stack/include/debug.h b/bacnet-stack/include/debug.h index 79a34a29..2a7126f5 100644 --- a/bacnet-stack/include/debug.h +++ b/bacnet-stack/include/debug.h @@ -38,6 +38,10 @@ #include #include #include "bacdef.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ #if DEBUG_ENABLED void debug_printf( @@ -51,5 +55,9 @@ static void debug_printf( format = format; } #endif + +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif