Re: string.h and NULL [was: memmem issues]

2008-01-07 Thread Bruno Haible
Eric Blake wrote: > According to Bruno Haible on 12/21/2007 6:42 AM: > | does not define NULL. Better write (void*)0 or "" instead of > NULL. > > Which platforms have a broken that fails to define NULL? Actually all platforms I have access to today define NULL in . Probably the latest platform

string.h and NULL [was: memmem issues]

2008-01-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 12/21/2007 6:42 AM: | |> + [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include ], |> + [return !memmem ("a", 1, NULL, 0);])], | | does not define NULL. Better write (void*)0 or "" instead of NULL. I've since fixed thi