Skip to content

Commit

Permalink
Do not claim that GCC predefines __POSIX__.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Feb 18, 2012
1 parent dd54084 commit 366842e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-02-18 Joseph Myers <joseph@codesourcery.com>

[BZ #4596]
* manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.

2012-02-18 David S. Miller <davem@davemloft.net>

* sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
Expand Down
8 changes: 4 additions & 4 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Version 2.16

* The following bugs are resolved with this release:

174, 350, 411, 3335, 4026, 4822, 5077, 5805, 6884, 6907, 9902, 10140,
10210, 11494, 12047, 13058, 13525, 13526, 13527, 13528, 13529, 13530,
13531, 13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559, 13583,
13618
174, 350, 411, 3335, 4026, 4596, 4822, 5077, 5805, 6884, 6907, 9902,
10140, 10210, 11494, 12047, 13058, 13525, 13526, 13527, 13528, 13529,
13530, 13531, 13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559,
13583, 13618

* ISO C11 support:

Expand Down
5 changes: 0 additions & 5 deletions manual/conf.texi
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,6 @@ by including @file{unistd.h} and then checking whether
probably fail because there is no @file{unistd.h}. We do not know of
@emph{any} way you can reliably test at compilation time whether your
target system supports POSIX or whether @file{unistd.h} exists.

The GNU C compiler predefines the symbol @code{__POSIX__} if the target
system is a POSIX system. Provided you do not use any other compilers
on POSIX systems, testing @code{defined (__POSIX__)} will reliably
detect such systems.
@end deftypevr

@comment unistd.h
Expand Down

0 comments on commit 366842e

Please sign in to comment.