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