[PATCH] Add guard macro to fpmath.h

Steve Kargl sgk at troutmask.apl.washington.edu
Sat Dec 2 19:32:35 UTC 2017


The following patch adds a guard macro to fpmath.h.
It is used to prevent multiple inclusions of its
content.  Please apply to top-of-tree.


Index: libc/include/fpmath.h
===================================================================
--- libc/include/fpmath.h	(revision 2044)
+++ libc/include/fpmath.h	(working copy)
@@ -27,6 +27,9 @@
  * $FreeBSD: head/lib/libc/include/fpmath.h 186461 2008-12-23 22:20:59Z marcel $
  */
 
+#ifndef _FPMATH_H_
+#define _FPMATH_H_
+
 #include <sys/endian.h>
 #include "_fpmath.h"
 
@@ -73,3 +76,5 @@ union IEEEd2bits {
 #endif
 	} bits;
 };
+
+#endif /* !_FPMATH_H */

-- 
Steve


More information about the freebsd-current mailing list