[PATCH] Add guard macro to fpmath.h

Eitan Adler lists at eitanadler.com
Sat Dec 2 19:42:58 UTC 2017


On 2 December 2017 at 11:32, Steve Kargl
<sgk at troutmask.apl.washington.edu> wrote:
> 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.

[69006 11:41:35.802 eax at FlyingEagle ~/svn/fbsd/head/lib]∴svn diff

(svn:head)-[head:326419]-[326419]
Index: libc/include/fpmath.h
===================================================================
--- libc/include/fpmath.h (revision 326419)
+++ libc/include/fpmath.h (working copy)
@@ -29,6 +29,9 @@
  * $FreeBSD$
  */

+#ifndef _FPMATH_H_
+#define _FPMATH_H_
+
 #include <sys/endian.h>
 #include "_fpmath.h"

@@ -75,3 +78,5 @@ union IEEEd2bits {
 #endif
  } bits;
 };
+
+#endif /* !_FPMATH_H */
[69007 11:41:37.789 eax at FlyingEagle ~/svn/fbsd/head/lib]∴svn ci
libc/include/fpmath.h
(svn:head)-[head:326419]-[326419]
Sending        libc/include/fpmath.h
Transmitting file data .done
Committing transaction...
Committed revision 326479.


-- 
Eitan Adler


More information about the freebsd-current mailing list