From a722111fced3d0629ad62d5084347ec6be618cb7 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周三, 23 10月 2013 22:56:51 +0800
Subject: [PATCH] merge formating from 'experimental'

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

diff --git a/libscpi/src/utils.h b/libscpi/src/utils.h
index e4f4137..2ad3f5d 100644
--- a/libscpi/src/utils.h
+++ b/libscpi/src/utils.h
@@ -45,7 +45,11 @@
 extern "C" {
 #endif
 
+#if defined(__GNUC__) && (__GNUC__ >= 4)
     #define LOCAL __attribute__((visibility ("hidden")))
+#else
+    #define LOCAL
+#endif
 
     char * strnpbrk(const char *str, size_t size, const char *set) LOCAL;
     bool_t compareStr(const char * str1, size_t len1, const char * str2, size_t len2) LOCAL;
@@ -64,6 +68,10 @@
     size_t BSD_strnlen(const char *s, size_t maxlen);
 #endif
 
+#if !HAVE_STRNCASECMP && !HAVE_STRNICMP
+    int OUR_strncasecmp(const char *s1, const char *s2, size_t n);
+#endif
+
 #define min(a, b)  (((a) < (b)) ? (a) : (b))
 #define max(a, b)  (((a) > (b)) ? (a) : (b))
 

--
Gitblit v1.9.1