From ed4a72ed0a579f2e40f200aacf0f2eb1f650fe3f Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 3 Oct 2011 22:05:39 +0000 Subject: [PATCH] Fixed print-enabled define checking. --- bacnet-stack/src/bacstr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bacnet-stack/src/bacstr.c b/bacnet-stack/src/bacstr.c index ab11bda3..0aade918 100644 --- a/bacnet-stack/src/bacstr.c +++ b/bacnet-stack/src/bacstr.c @@ -35,13 +35,13 @@ #include #include #include /* for strlen */ -#ifdef PRINT_ENABLED -#include /* for strtol */ -#include /* for isalnum */ -#endif #include "config.h" #include "bacstr.h" #include "bits.h" +#if PRINT_ENABLED +#include /* for strtol */ +#include /* for isalnum */ +#endif /** @file bacstr.c Manipulate Bit/Char/Octet Strings */ @@ -645,7 +645,7 @@ bool octetstring_init( return status; } -#ifdef PRINT_ENABLED +#if PRINT_ENABLED /* converts an null terminated ASCII Hex string to an octet string. returns true if successfully converted and fits; false if too long */ bool octetstring_init_ascii_hex(