--- !ditz.rubyforge.org,2008-03-06/issue title: improve platform detection in headers desc: |- Reconcile detection between duk_features.h and duk_internal.h. Feature macros (e.g. _XOPEN_SOURCE) must be defined before *any* system headers are included. On the other hand, some detection (like endianness) depends on system headers. One alternative is to move feature macro determination from duk_internal.h to duk_features.h. Duk_features.h could do whatever checks are necessary and define feature macros, before including any headers needed for further platform detection (like endianness headers). Once complete, duk_internal.h could include and friends. type: :task component: duk release: v0.6 reporter: sva status: :closed disposition: :fixed creation_time: 2013-09-16 00:26:12.151791 Z references: [] id: ffc28e8dbe334468a75143ec0d33de989e0280d4 log_events: - - 2013-09-16 00:26:12.431544 Z - sva - created - "" - - 2013-09-16 00:43:42.293989 Z - sva - closed with disposition fixed - ""