原始文献 / 论坛帖 / Re: BSD detection

Re: BSD detection

Bitcointalk · 2010-08-12 21:14:20 UTC

AuthorSatoshi Nakamoto
TitleRe: BSD detection
Date2010-08-12 21:14:20 UTC
ForumBitcointalk · 原文

SVN rev 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