Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2017 11:32:34 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-hackers@freebsd.org, freebsd-current@freebsd.org
Subject:   [PATCH] Add guard macro to fpmath.h
Message-ID:  <20171202193234.GA45300@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171202193234.GA45300>