[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libdfp-patches] [PATCH] Remove include guards from numdigits.h



Hi,

This patch removes the include guards from the numdigits.h files in the
sysdeps dirs, allowing them to be included multiple times.

Luis

2010-10-18  Luis Machado  <luisgpm@xxxxxxxxxx>

	* sysdeps/s390/dfpu/numdigits.h: Remove include guards.
	* sysdeps/powerpc/dfpu/numdigits.h: Likewise.
	* sysdeps/soft-dfp/dpd/numdigits.h: Likewise.

Index: libdfp-head/sysdeps/s390/dfpu/numdigits.h
===================================================================
--- libdfp-head.orig/sysdeps/s390/dfpu/numdigits.h	2010-10-18 11:32:33.324319597 -0200
+++ libdfp-head/sysdeps/s390/dfpu/numdigits.h	2010-10-18 11:41:46.320716415 -0200
@@ -23,9 +23,8 @@
 
    Please see libdfp/COPYING.txt for more information.  */
 
-#ifndef _NUMDIGITS_H
-#define _NUMDIGITS_H 1
-
+/* Alow this file to be included more than once, so don't use the usual
+   include guards.  */
 
 #define NUMDIGITS_SUPPORT 1
 
@@ -171,6 +170,3 @@
   return rnd;
 #endif
 }
-
-
-#endif /* _NUMDIGITS_H */
Index: libdfp-head/sysdeps/powerpc/dfpu/numdigits.h
===================================================================
--- libdfp-head.orig/sysdeps/powerpc/dfpu/numdigits.h	2010-10-18 11:46:23.467806762 -0200
+++ libdfp-head/sysdeps/powerpc/dfpu/numdigits.h	2010-10-18 11:47:47.280716146 -0200
@@ -25,9 +25,8 @@
 
    Please see dfp/COPYING.txt for more information.  */
 
-/* Allow this to be included more than once so don't guard it. */
-//#ifndef _NUMDIGITS_H
-//#define _NUMDIGITS_H 1
+/* Alow this file to be included more than once, so don't use the usual
+   include guards.  */
 
 #define NUMDIGITS_SUPPORT 1
 
@@ -205,5 +204,3 @@
   * _Decima64 back to _Decimal32 since the calculation is done in _Decimal64.  */
   return (DEC_TYPE)rnd;
 }
-
-//#endif /* _NUMDIGITS_H */
Index: libdfp-head/sysdeps/soft-dfp/dpd/numdigits.h
===================================================================
--- libdfp-head.orig/sysdeps/soft-dfp/dpd/numdigits.h	2010-10-18 11:46:27.395805712 -0200
+++ libdfp-head/sysdeps/soft-dfp/dpd/numdigits.h	2010-10-18 11:47:36.280148685 -0200
@@ -23,9 +23,8 @@
 
    Please see dfp/COPYING.txt for more information.  */
 
-
-//#ifndef _NUMDIGITS_H
-//#define _NUMDIGITS_H 1
+/* Alow this file to be included more than once, so don't use the usual
+   include guards.  */
 
 #define NUMDIGITS_SUPPORT 1
 
@@ -226,5 +225,3 @@
 
   return x;
 }
-
-//#endif /* _NUMDIGITS_H */