From: Amos Jeffries Date: Sat, 16 Feb 2013 02:29:11 +0000 (-0700) Subject: Solaris: Fix xstrto*() function linkages X-Git-Tag: SQUID_3_2_8~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea2cc3c85a159f7ac7f665cede242ea16b5d441e;p=thirdparty%2Fsquid.git Solaris: Fix xstrto*() function linkages These functions are only used by C++ code now and can be hidden from the .c files. --- 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 */