Use nullptr for nil in C++11.

main
David Chisnall 8 years ago
parent 7539d7e042
commit 3c036b3f4f

@ -198,7 +198,11 @@ typedef struct
#ifdef __GNUC
# define _OBJC_NULL_PTR __null
#elif defined(__cplusplus)
# define _OBJC_NULL_PTR 0
# if __has_feature(cxx_nullptr)
# define _OBJC_NULL_PTR nullptr
# else
# define _OBJC_NULL_PTR 0
# endif
#else
# define _OBJC_NULL_PTR ((void*)0)
#endif

Loading…
Cancel
Save