理论上换成 stdlib.h 就能用了,如果需要多平台编译,可以使用宏定义
#ifdef __APPLE__
#include <stdlib.h>
#else
#include <malloc.h>
#endif
理论上换成 stdlib.h 就能用了,如果需要多平台编译,可以使用宏定义
#ifdef __APPLE__
#include <stdlib.h>
#else
#include <malloc.h>
#endif

被折叠的 条评论
为什么被折叠?