From f47ef569ed592a1049c66e951ea52504598dc29e Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 14 Feb 2013 02:13:47 -0700 Subject: [PATCH] Solaris: Fix xstrto*() function linkages These functions are only used by C++ code now and can be hidden from the .c files. --- compat/xstrto.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compat/xstrto.h b/compat/xstrto.h index 9dc9821070..3e483b9477 100644 --- a/compat/xstrto.h +++ b/compat/xstrto.h @@ -1,6 +1,9 @@ #ifndef _SQUID_XSTRTO_H #define _SQUID_XSTRTO_H +// these functions are not used by the remaining Squid C code. +#if defined(__cplusplus) + #if HAVE_STDBOOL_H #include #endif @@ -27,4 +30,5 @@ bool xstrtoul(const char *s, char **end, unsigned long *value, bool xstrtoui(const char *s, char **end, unsigned int *value, unsigned int min, unsigned int max); +#endif /* __cplusplus */ #endif /* _SQUID_XSTRTO_H */ -- 2.47.2