Fixed print-enabled define checking.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user