This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: AIX status
- To: libstdc++ at sources dot redhat dot com
- Subject: Re: AIX status
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 13 Oct 2000 16:34:16 -0400
>>>>> 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