On Thu, Oct 17, 2019 at 7:14 AM Guillermo <gdiazhartusch_at_gmail.com> wrote:
>
> If compiler predefined macros like __linux__ or __NetBSD__ are OK for
> <skalibs/nonposix.h>, how about #if defined(__linux__) ||
> defined(__GNU__)? GCC predefines both __GNU__ and __gnu_hurd__ (I
> think, can be checked with 'cpp -dM - </dev/null') when compiling for
> the Hurd, and I suppose no other compiler targets that OS...
>
look at the result of `cpp -dM - </dev/null`, following are defined.
__GNU__
__MACH__
__gnu_hurd__
--
Shengjing Zhu
Received on Thu Oct 17 2019 - 17:14:52 UTC