diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-04-10 15:42:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-04-10 15:42:48 -0700 |
commit | 407377d0d945ccab189546ce0ce9d5f7d4a7f076 (patch) | |
tree | 59c6719d064e45ec517241f94d5e386be55551ff /HACKING | |
parent | 5336c93d6b6b79daac6d1a239ac2955277b376fa (diff) | |
download | txr-407377d0d945ccab189546ce0ce9d5f7d4a7f076.tar.gz txr-407377d0d945ccab189546ce0ce9d5f7d4a7f076.tar.bz2 txr-407377d0d945ccab189546ce0ce9d5f7d4a7f076.zip |
* configure: Switch from _POSIX_C_SOURCE=2 to _XOPEN_SOURCE.
We will be relying on the gettimeofday function which only came
into POSIX in 2001, but was in Unix long before then.
* HACKING: Replace notes about -D_POSIX_C_SOURCE which are not true
any more.
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -43,10 +43,10 @@ provide rationale and make coding recommendations. Txr is written in a language that consists of the common dialect between C90 and C++98. The code can be built with either the GNU C compiler or the GNU C++ -compiler. Use is made of some POSIX.2 functions, which are requested by means -of -D_POSIX_2_SOURCE. Also, the <wchar.h> header is used, which was introduced -by a 1995 addendum to the C language, so it may be said that the actual C -dialect is C95. +compiler. Use is made of some Unix functions from before Unix95, which are +requested by means of -D_XOPEN_SOURCE (POSIX.1, POSIX.2, X/Open Portabiity +Guide 4). Also, the <wchar.h> header is used, which was introduced by a 1995 +addendum to the C language, so it may be said that the actual C dialect is C95. In coding new features or fixing bugs, care must be taken to preserve this. Code must continue to compile as C and C++, and not increase the portability |