From 9bbac30cf46b7a2daf1f2a51f27de52b1210ebcb Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 20 Feb 2008 22:47:16 +0000 Subject: [PATCH] Added defines to ease usage with demo applications. --- bacnet-stack/include/bvlc.h | 2 +- bacnet-stack/src/bvlc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/include/bvlc.h b/bacnet-stack/include/bvlc.h index 4811efdc..fdb639da 100644 --- a/bacnet-stack/include/bvlc.h +++ b/bacnet-stack/include/bvlc.h @@ -45,7 +45,7 @@ extern "C" { #endif /* __cplusplus */ -#if BBMD_ENABLED +#if defined(BBMD_ENABLED) && BBMD_ENABLED void bvlc_maintenance_timer( unsigned seconds); #else diff --git a/bacnet-stack/src/bvlc.c b/bacnet-stack/src/bvlc.c index 62af7286..ce0ba0ab 100644 --- a/bacnet-stack/src/bvlc.c +++ b/bacnet-stack/src/bvlc.c @@ -35,6 +35,7 @@ #include /* for standard integer types uint8_t etc. */ #include /* for the standard bool type. */ #include /* for the standard bool type. */ +#include "bacenum.h" #include "bacdcode.h" #include "bacint.h" #include "bvlc.h" @@ -89,6 +90,7 @@ BACNET_BVLC_RESULT BVLC_Result_Code = BVLC_RESULT_SUCCESSFUL_COMPLETION; remote BBMD address/port here in network byte order */ static struct sockaddr_in Remote_BBMD; +#if defined(BBMD_ENABLED) && BBMD_ENABLED void bvlc_maintenance_timer( unsigned seconds) { @@ -109,6 +111,7 @@ void bvlc_maintenance_timer( } } } +#endif /* Addressing within B/IP Networks In the case of B/IP networks, six octets consisting of the four-octet