The file machine/ieeefp.h needs sys/cdefs.h on amd64 and i386 after my

compiler features tests. This is ok, since machine/ieeefp.h is an internal
interface. But floatingpoint.h is a public interface and some ports use it,
so include sys/cdefs.h in the amd64 and i386 version of floatingpoint.h.

Note: some architectures don't provide recursive inclusion protection in
floatingpoint.h, namely alpha and ia64. Except for this part and now the
include of sys/cdefs.h, all those files are equal (from a compiler POV),
so they could be moved to only one version in src/include/.

Approved by:	joerg
This commit is contained in:
Alexander Leidinger 2005-04-02 17:31:42 +00:00
parent fde2b24692
commit 3df129097b
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@
#ifndef _FLOATINGPOINT_H_
#define _FLOATINGPOINT_H_
#include <sys/cdefs.h>
#include <machine/ieeefp.h>
#endif /* !_FLOATINGPOINT_H_ */

View File

@ -37,6 +37,7 @@
#ifndef _FLOATINGPOINT_H_
#define _FLOATINGPOINT_H_
#include <sys/cdefs.h>
#include <machine/ieeefp.h>
#endif /* !_FLOATINGPOINT_H_ */