AIX status
David Edelsohn
dje@watson.ibm.com
Fri Oct 13 13:34:00 GMT 2000
>>>>> Phil Edwards writes:
Phil> Guess I'm missing something... why can't os_defines simply include the AIX
Phil> system header which defines _POSIX_SOURCE? That system header would be the
Phil> absolutely first one to be fully processed, so its definition would hold.
Phil> And the AIX headers would thus be continuously and automatically tracked.
This will work if os_defines is included before the ifndef
_POSIX_SOURCE line. Currently the files in libio look like:
#ifndef _POSIX_SOURCE
# define _POSIX_SOURCE
#endif
#include "libioP.h"
#include <sys/types.h>
os_defines.h is included via libioP.h which is too late because
_POSIX_SOURCE already has been defined incorrectly. Also, the
_POSIX_SOURCE definition is intended to affect the files included via
libioP.h.
David
More information about the Libstdc++
mailing list