From 29267681d22dac5c94cd9f01ddef394ec3c679f1 Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 26 Feb 2007 14:04:18 +0000 Subject: [PATCH] Moved and inverted the TSM_ENABLED preprocessor check since it wasn't working for when compiled with apdu.c on Linux under GCC. --- bacnet-stack/tsm.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bacnet-stack/tsm.h b/bacnet-stack/tsm.h index bd6e81ed..f4cac4b5 100644 --- a/bacnet-stack/tsm.h +++ b/bacnet-stack/tsm.h @@ -42,7 +42,9 @@ /* note: TSM functionality is optional - only needed if we are doing client requests */ -#if TSM_ENABLED +#if (!TSM_ENABLED) +#define tsm_free_invoke_id(x) (void)x; +#else typedef enum { TSM_STATE_IDLE, TSM_STATE_AWAIT_CONFIRMATION, @@ -115,10 +117,6 @@ extern "C" { } #endif /* __cplusplus */ /* define out any functions necessary for compile */ -#else - -#define tsm_free_invoke_id(x) (void)x; - #endif #endif