Skip to content

回复:BSD 检测 ​

原始发布页

打开来源页面
查看 1 个交叉存档

这已包含在 SVN 修订版 130 中。检查一下它能否正确编译。

代码:

#if (defined(__unix__) || defined(unix)) && !defined(USG) #include <sys/param.h> // to get BSD define #endif #ifdef __WXMAC_OSX__ #ifndef BSD #define BSD 1 #endif #endif

英文原文 ​

展开英文原文

This is in SVN rev 130. Check that it compiles right.

Code:

#if (defined(__unix__) || defined(unix)) && !defined(USG) #include <sys/param.h> // to get BSD define #endif #ifdef __WXMAC_OSX__ #ifndef BSD #define BSD 1 #endif #endif

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。