我有一个遗留C++代码库,其中包括以下内容:
// this kludge is required because SparcWorks 3.0.1 under SunOS
// includes malloc.h in stdlib.h, and misdeclares free() to take a char*,
// and malloc() and memalign() to return char*
显然这是古C的一些残余. comments 后面是原型(在Fedora Linux 39上这里是错误的,它们与gliBC-2.38-18中的原型冲突).我想干净地把#if
个部分拿出来.我可以使用任何宏吗?