From 6b2fc9c63be9d1454cf9df8c00771fdd238ba465 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周三, 20 3月 2013 23:00:18 +0800
Subject: [PATCH] ANSI C89 modifications

---
 libscpi/src/utils.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libscpi/src/utils.h b/libscpi/src/utils.h
index 37e4a7e..b1e24a0 100644
--- a/libscpi/src/utils.h
+++ b/libscpi/src/utils.h
@@ -38,6 +38,7 @@
 #define	SCPI_UTILS_H
 
 #include <stdint.h>
+#include "scpi/config.h"
 #include "scpi/types.h"
 
 #ifdef	__cplusplus
@@ -57,6 +58,10 @@
     size_t skipWhitespace(const char * cmd, size_t len) LOCAL;
     bool_t matchPattern(const char * pattern, size_t pattern_len, const char * str, size_t str_len) LOCAL;
 
+#if !HAVE_STRNLEN
+    size_t BSD_strnlen(const char *s, size_t maxlen);
+#endif
+
 #define min(a, b)  (((a) < (b)) ? (a) : (b))
 #define max(a, b)  (((a) > (b)) ? (a) : (b))
 

--
Gitblit v1.9.1