software/stddef.h: c++ compat for NULL
This commit is contained in:
parent
e06585d9fe
commit
80f3e97ca9
|
@ -1,7 +1,11 @@
|
|||
#ifndef __STDDEF_H
|
||||
#define __STDDEF_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
|
||||
typedef unsigned long size_t;
|
||||
typedef long ptrdiff_t;
|
||||
|
|
Loading…
Reference in New Issue