Fixed print-enabled define checking.

This commit is contained in:
skarg
2011-10-03 22:05:39 +00:00
parent 0d5c57b149
commit ed4a72ed0a
+5 -5
View File
@@ -35,13 +35,13 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> /* for strlen */ #include <string.h> /* for strlen */
#ifdef PRINT_ENABLED
#include <stdlib.h> /* for strtol */
#include <ctype.h> /* for isalnum */
#endif
#include "config.h" #include "config.h"
#include "bacstr.h" #include "bacstr.h"
#include "bits.h" #include "bits.h"
#if PRINT_ENABLED
#include <stdlib.h> /* for strtol */
#include <ctype.h> /* for isalnum */
#endif
/** @file bacstr.c Manipulate Bit/Char/Octet Strings */ /** @file bacstr.c Manipulate Bit/Char/Octet Strings */
@@ -645,7 +645,7 @@ bool octetstring_init(
return status; return status;
} }
#ifdef PRINT_ENABLED #if PRINT_ENABLED
/* converts an null terminated ASCII Hex string to an octet string. /* converts an null terminated ASCII Hex string to an octet string.
returns true if successfully converted and fits; false if too long */ returns true if successfully converted and fits; false if too long */
bool octetstring_init_ascii_hex( bool octetstring_init_ascii_hex(