Re: [PATCH] Add guard macro to fpmath.h

From: Eitan Adler <lists_at_eitanadler.com>
Date: Sat, 2 Dec 2017 11:42:26 -0800
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)
_at__at_ -29,6 +29,9 _at__at_
  * $FreeBSD$
  */

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

_at__at_ -75,3 +78,5 _at__at_ 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
Received on Sat Dec 02 2017 - 18:42:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC