罗勇刚, on Wed, 23 Nov 2022 16:20:39 +0800 you (罗勇刚(Yonggang Luo) ) wrote: > It's not because the compiler, it's because: > * when compiling C code, __cplusplus is not defined, > * when compiling C++ code, __STDC_VERSION__ is not defined sure As I said, this is a policy decision of the corresponding C library implementation. Whatever musl's policy here is, they will use that. (If even in that case, because changes to `NULL` are not mandatory.) Thanks Jₑₙₛ -- :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::