appease sun - nil is now just 0 instead of (void*)0
to fix function pointer problems.
This commit is contained in:
parent
1f8a80722f
commit
aaa502d3a3
2 changed files with 16 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue