[Spread-users] Hi, here's a bug, and a patch.

Neil Conway neilc at samurai.com
Thu May 4 05:25:54 EDT 2006


Andrew Barnert said:
> Anyway, I found a bug in spread-3.17.3. Spread's C/C++ interface defines
> NULL as (void *)0, which is perfectly fine for C, but not for C++.

Why does Spread need to provide its own definition of NULL in any case? It
should be provided by any reasonably modern platform -- IMHO the right fix
would be to just remove the #ifndef NULL block (and #include <stddef.h> as
needed).

-Neil






More information about the Spread-users mailing list