"Mark D. Baushke" <[EMAIL PROTECTED]> writes: > If you must check for it being defined, wouldn't this form > > #if !defined HAVE_DECL_STRNLEN || !HAVE_DECL_STRNLEN
In the old days we were worried about people using gnulib .c files without using the corresponding .m4 code. In such a case, HAVE_DECL_STRNLEN wouldn't be defined, but the code still shouldn't declare strnlen. These days the gnulib packaging process pretty much makes these concerns obsolete. So it's OK to use "#if !HAVE_DECL_STRNLEN" nowadays, I think.