mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
Fix build without --enable-debug
This commit is contained in:
@@ -1096,6 +1096,7 @@ extern "C"
|
||||
|
||||
/**
|
||||
* Set debug level for the format parsers.
|
||||
* @note This function does nothing if libplist was not configured with --enable-debug .
|
||||
*
|
||||
* @param debug Debug level. Currently, only 0 (off) and 1 (enabled) are supported.
|
||||
*/
|
||||
|
||||
@@ -229,7 +229,9 @@ void plist_bin_deinit(void)
|
||||
|
||||
void plist_bin_set_debug(int debug)
|
||||
{
|
||||
#if DEBUG
|
||||
plist_bin_debug = debug;
|
||||
#endif
|
||||
}
|
||||
|
||||
static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node_index);
|
||||
|
||||
@@ -66,7 +66,9 @@ void plist_json_deinit(void)
|
||||
|
||||
void plist_json_set_debug(int debug)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
plist_json_debug = debug;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef HAVE_STRNDUP
|
||||
|
||||
@@ -65,7 +65,9 @@ void plist_ostep_deinit(void)
|
||||
|
||||
void plist_ostep_set_debug(int debug)
|
||||
{
|
||||
#if DEBUG
|
||||
plist_ostep_debug = debug;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef HAVE_STRNDUP
|
||||
|
||||
@@ -104,7 +104,9 @@ void plist_xml_deinit(void)
|
||||
|
||||
void plist_xml_set_debug(int debug)
|
||||
{
|
||||
#if DEBUG
|
||||
plist_xml_debug = debug;
|
||||
#endif
|
||||
}
|
||||
|
||||
static size_t dtostr(char *buf, size_t bufsize, double realval)
|
||||
|
||||
Reference in New Issue
Block a user