about summary refs log tree commit diff
path: root/soft-fp/double.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-03-10 00:32:29 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-03-10 00:32:29 +0000
commita2f8be9c834cb513666e0ce02ee8f4b4a3f358f8 (patch)
tree36516d6c425e191e540ab913a3caafb164cdb6d1 /soft-fp/double.h
parent01d032e0bb911f855963f75449e4fbe48e657292 (diff)
downloadglibc-a2f8be9c834cb513666e0ce02ee8f4b4a3f358f8.tar.gz
glibc-a2f8be9c834cb513666e0ce02ee8f4b4a3f358f8.tar.xz
glibc-a2f8be9c834cb513666e0ce02ee8f4b4a3f358f8.zip
soft-fp: Use multiple-include guards.
This patch makes soft-fp headers consistently use multiple-include
guards, something previously done mainly only in the Linux kernel
version.  The guard macros aren't the same as those used in the Linux
kernel, but there seems to be enough variation in such guards in Linux
kernel code that hopefully this version will be acceptable there.

Tested for powerpc-nofpu that installed stripped shared libraries are
unchanged by this patch.

	* soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
	* soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
	* soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
	* soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
	* soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
	* soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
	* soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
	* soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
	* soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
	* soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
	Add comment on closing #endif.
Diffstat (limited to 'soft-fp/double.h')
-rw-r--r--soft-fp/double.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/soft-fp/double.h b/soft-fp/double.h
index b45827b98a..a05713f683 100644
--- a/soft-fp/double.h
+++ b/soft-fp/double.h
@@ -30,6 +30,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef SOFT_FP_DOUBLE_H
+#define SOFT_FP_DOUBLE_H	1
+
 #if _FP_W_TYPE_SIZE < 32
 # error "Here's a nickel kid.  Go buy yourself a real computer."
 #endif
@@ -316,3 +319,5 @@ union _FP_UNION_D
 # define _FP_FRAC_HIGH_DW_D(X)	_FP_FRAC_HIGH_2 (X)
 
 #endif /* W_TYPE_SIZE < 64 */
+
+#endif /* !SOFT_FP_DOUBLE_H */