Dmitry Sivachenko reported a build warning on FreeBSD -dev, where
__nonstring is apparently already defined. Let's guard our own
definition to avoid such issues. It could make sense to backport
this to recent stable versions which may soon be exposed to modern
compilers.
* for such array declarations. But it's not the case for clang and other
* compilers.
*/
-#if __has_attribute(nonstring)
-#define __nonstring __attribute__ ((nonstring))
-#else
-#define __nonstring
+#ifndef __nonstring
+# if __has_attribute(nonstring)
+# define __nonstring __attribute__ ((nonstring))
+# else
+# define __nonstring
+# endif
#endif
#endif /* _HAPROXY_COMPILER_H */