X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fstring.h;h=43ad0942edd54c6d6ae9d52dc33f27e452aa7aa3;hb=5ff3eea91fa6bdce25b3a35644433f68e076beca;hp=795a2abcd990ac1ecd3b7592d6948b897ec9cb68;hpb=05ac345f895098657cf44d419b5d572161ebaf43;p=musl diff --git a/include/string.h b/include/string.h index 795a2abc..43ad0942 100644 --- a/include/string.h +++ b/include/string.h @@ -7,7 +7,9 @@ extern "C" { #include -#ifdef __cplusplus +#if __cplusplus >= 201103L +#define NULL nullptr +#elif defined(__cplusplus) #define NULL 0L #else #define NULL ((void*)0)