From 3c5ca89152f962e0887bd5cf607c69a52c3dd575 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周二, 31 5月 2016 21:50:42 +0800 Subject: [PATCH] Rework compiler detection, fix SCPI_dtostre length limitation --- libscpi/src/utils_private.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libscpi/src/utils_private.h b/libscpi/src/utils_private.h index ba1f8fc..f83c6d4 100644 --- a/libscpi/src/utils_private.h +++ b/libscpi/src/utils_private.h @@ -94,6 +94,10 @@ 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