Replace NULL macro defs with null.h include

This commit is contained in:
Arun Thomas
2010-07-22 10:03:31 +00:00
parent 62d44dc9ef
commit dbde088d98
12 changed files with 15 additions and 19 deletions

View File

@@ -3,7 +3,7 @@
#ifndef _STDDEF_H
#define _STDDEF_H
#define NULL ((void *)0)
#include <sys/null.h>
/* The following is not portable, but the compiler accepts it. */
#define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident)