]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Solaris: Fix xstrto*() function linkages
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 13 Feb 2013 05:37:51 +0000 (18:37 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 13 Feb 2013 05:37:51 +0000 (18:37 +1300)
These functions are only used by C++ code now and can be hidden from
the .c files.

compat/xstrto.h

index 9dc9821070ba64bbd6608e1026624968db2e7501..3e483b94772aec5ffed3521f9edbc108ac29ec90 100644 (file)
@@ -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 <stdbool.h>
 #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 */