This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AIX status


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]