From e2abcdca396661cbe0ae2ddb13d5c2b85682c13a Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 16 Oct 2020 17:41:25 +0300 Subject: initial commit --- sys/sys/_null.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sys/sys/_null.h (limited to 'sys/sys/_null.h') diff --git a/sys/sys/_null.h b/sys/sys/_null.h new file mode 100644 index 0000000..5d15401 --- /dev/null +++ b/sys/sys/_null.h @@ -0,0 +1,18 @@ +/* $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $ */ + +/* + * Written by Todd C. Miller, September 9, 2016 + * Public domain. + */ + +#ifndef NULL +#if !defined(__cplusplus) +#define NULL ((void *)0) +#elif __cplusplus >= 201103L +#define NULL nullptr +#elif defined(__GNUG__) +#define NULL __null +#else +#define NULL 0L +#endif +#endif -- cgit v1.2.3