From db0bfe56689d8ca9bd2f716836db04d4cd252588 Mon Sep 17 00:00:00 2001 From: Jack <jack.barraclough.1@gmail.com> Date: 周三, 22 2月 2017 00:59:26 +0800 Subject: [PATCH] Fix compiler warning with USE_COMMAND_TAGS 0 --- libscpi/src/utils_private.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/libscpi/src/utils_private.h b/libscpi/src/utils_private.h index 671dea0..f83c6d4 100644 --- a/libscpi/src/utils_private.h +++ b/libscpi/src/utils_private.h @@ -87,6 +87,17 @@ int OUR_strncasecmp(const char *s1, const char *s2, size_t n) LOCAL; #endif +#if USE_DEVICE_DEPENDENT_ERROR_INFORMATION && !USE_MEMORY_ALLOCATION_FREE + void scpiheap_init(scpi_error_info_heap_t * heap, char * error_info_heap, size_t error_info_heap_length); + char * scpiheap_strndup(scpi_error_info_heap_t * heap, const char *s, size_t n) LOCAL; + void scpiheap_free(scpi_error_info_heap_t * heap, char *s, scpi_bool_t rollback) LOCAL; + scpi_bool_t scpiheap_get_parts(scpi_error_info_heap_t * heap, const char *s1, size_t * len1, const char ** s2, size_t * len2) LOCAL; +#endif + +#if !HAVE_STRNDUP + char *OUR_strndup(const char *s, size_t n); +#endif + #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif -- Gitblit v1.9.1