BSD 检测

中本聪SN-2288
其他参与者原话dkaparis原帖 ↗

headers.h 里有这样一段代码:

There is this piece of code in headers.h:

#ifdef __WXMAC_OSX__

#ifdef __WXMAC_OSX__

#define __WXMAC__ 1

#define __WXMAC__ 1

#define __WXOSX__ 1

#define __WXOSX__ 1

#define __BSD__ 1

#define __BSD__ 1

#endif

#endif

#endif

#endif

中本聪回应

那段代码本来就是个馊主意,我要删了它。Mac 相关代码应该只用 __WXMAC_OSX__,不要用 __WXMAC__ 或 __WXOSX__,我们也该停用 __BSD__。

That code was a bad idea anyway, I'm deleting it. Any Mac code should only use __WXMAC_OSX__, not __WXMAC__ or __WXOSX__, and we should stop using __BSD__.

引用 · 发言者未注明

#if (defined(__unix__) || defined(unix)) && !defined(USG)

#if (defined(__unix__) || defined(unix)) && !defined(USG)

#include

#include

#endif

#endif

中本聪回应

这能保证 Mac 上 BSD 一定被定义吗?

Will that definitely cause BSD to be defined on Mac?

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:7429fdcf1018。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

BSD detection

Bitcointalk · 原始链接 ↗ 记录编号 SN-2288

阅读字号

选择适合你的字号,之后阅读会继续使用。