[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where is #define __linux__



On Mon, Jan 08, 2001 at 11:05:54PM -0800, Aaron Brashears wrote:
> 
>  While on the topic, is there a
> magic preprocessor definition that lets me know if I'm on
> sunos/solaris?

yes indeedy. multiple.

there is __sun__  to detect solarisORsunos, and __svr4__ to detect
solaris specifically, I believe.

there is also __sparc__ and __i386__ to deal with



Reply to: