Article View: gnu.misc.discuss
Article #2114POSIX test in gmake-3.75
From: Tim Smithers
Date: Mon, 04 Nov 1996 00:00
Date: Mon, 04 Nov 1996 00:00
51 lines
1837 bytes
1837 bytes
I haven't been able to find anywhere on the
net that defines POSIX standards for C.
I am interested about how various POSIX levels
are defined for include files & macro pre-processing.
To be exact, I am interested in the following line,
#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2
Now I am assuming that whatever this #ifdef's out
is available in posix level 2.
However, from what I have read
Notice below:
* NOTICE: POSIX 1003.1c support
* -----------------------------
*
* The POSIX 1003.1c-1995 standard was formally approved at the
June
* 1995 meeting of the IEEE Standards Board. The correct
configuration
* test macro for strictly conforming POSIX 1003.1c-1995
applications is
*
* #define _POSIX_C_SOURCE 199506L
*
Thus, the above test obviously fails
whereas it should(?) succeed, as the level is
less than that of level 2? (ie: 1003.1c)
Does anyone have any idea about this & what
should be the correct behaviour/#ifdef test?
Any pointers would be appreciated.
Thanks,
-mouse
--
Tim Smithers.
DMouse Pty. Ltd.
ph: 019 910 195
e-mail: mouse@finance.econ.su.oz.au
( Perfection is a hobby many pursue,
but few have a chance of success )
Technical Details
Message-ID:
<327DA593.64D7@finance.econ.su.oz.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb013,f34cf285f2bf6635,start X-Google-Attributes: gidfb013,public X-Google-Thread: 1025b4,f34cf285f2bf6635,start X-Google-Attributes: gid1025b4,public From: Tim Smithers <mouse@finance.econ.su.oz.au> Subject: POSIX test in gmake-3.75 Date: 1996/11/04 Message-ID: <327DA593.64D7@finance.econ.su.oz.au> X-Deja-AN: 194284534 distribution: inet content-type: text/plain; charset=us-ascii organization: DMouse Pty. Ltd. mime-version: 1.0 newsgroups: gnu.misc.discuss,gnu.config x-mailer: Mozilla 2.02Gold (WinNT; I)