From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0cfa374ef618e89ef35af9f93e0d1da2@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] GNU Make From: Charles Forsyth Date: Wed, 2 Jun 2004 16:24:21 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 905ce430-eacd-11e9-9e20-41e7f4b1d025 >>yes, but I was hoping the iterative process from 0.x would get us native, >>i.e. skip APE. In the early days gcc was very portable, and would compile >>under just about any C compiler. Nowadays, what with all the lovely >>extras, I'm not sure it compiles well under non-gcc-compatible compilers. it seems to assume sys/types.h and (funnily enough) errno.h, amongst others, so it's mildly APE; many of the others are included only if many things are #defined so might not matter. the assumed library is essentially APE system.h (644 lines) has many things like this: /* 1 if we have C99 designated initializers. */ #if !defined(HAVE_DESIGNATED_INITIALIZERS) #define HAVE_DESIGNATED_INITIALIZERS \ ((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L)) #endif /* 1 if we have _Bool. */ #ifndef HAVE__BOOL # define HAVE__BOOL \ ((GCC_VERSION >= 3000) || (__STDC_VERSION__ >= 199901L)) #endif /* Test if something is a socket. */ #ifndef S_ISSOCK # ifdef S_IFSOCK # define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) # else # define S_ISSOCK(m) 0 # endif #endif /* Test if something is a FIFO. */ #ifndef S_ISFIFO # ifdef S_IFIFO # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) # else # define S_ISFIFO(m) 0 # endif #endif but then i can't find them used.