From 92ffad1a72bc8c422426d52ac408bd71242dd047 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 28 Jan 2018 21:30:39 +0000 Subject: Use nullptr as NULL pointer constant instead of NULL or 0. This changes only code, no string literals or comments. --- toxcore/ccompat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toxcore/ccompat.h') diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index 05212ec5..dfbfe3eb 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h @@ -45,4 +45,8 @@ #endif +#ifndef __cplusplus +#define nullptr NULL +#endif + #endif /* CCOMPAT_H */ -- cgit v1.2.3