appease sun - nil is now just 0 instead of (void*)0

to fix function pointer problems.
This commit is contained in:
rsc 2005-03-15 16:12:51 +00:00
parent 1f8a80722f
commit aaa502d3a3
2 changed files with 16 additions and 12 deletions

View file

@ -13,7 +13,9 @@ extern "C" {
* Begin usual libc.h
*/
#ifndef nil
#define nil ((void*)0)
#endif
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
#ifndef offsetof