Re: Porting skalibs to GNU Hurd

From: Shengjing Zhu <zhsj_at_debian.org>
Date: Fri, 18 Oct 2019 01:14:52 +0800

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

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC