software/stddef.h: c++ compat for NULL

This commit is contained in:
Sebastien Bourdeauducq 2013-03-24 00:17:42 +01:00
parent e06585d9fe
commit 80f3e97ca9
1 changed files with 4 additions and 0 deletions

View File

@ -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;