回复: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