This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix header guard paste-o


I noticed this silly mistake as I was appyling another patch for an old bug ;-)

I just renamed a header guard to be more standard in gamma.tcc.

I found that header guard used where a different constant should be!

I'm still in the middle of a bootstrap and regtest.

Ed

Index: include/tr1/exp_integral.tcc
===================================================================
--- include/tr1/exp_integral.tcc	(revision 150913)
+++ include/tr1/exp_integral.tcc	(working copy)
@@ -165,7 +165,7 @@
             __del = -__fact / _Tp(__i - __nm1);
           else
             {
-              _Tp __psi = -_TR1_GAMMA_TCC;
+              _Tp __psi = -__numeric_constants<_Tp>::gamma_e();
               for (int __ii = 1; __ii <= __nm1; ++__ii)
                 __psi += _Tp(1) / _Tp(__ii);
               __del = __fact * (__psi - std::log(__x)); 
Index: include/tr1/gamma.tcc
===================================================================
--- include/tr1/gamma.tcc	(revision 150913)
+++ include/tr1/gamma.tcc	(working copy)
@@ -44,8 +44,8 @@
 //   (4) Gamma, Exploring Euler's Constant, Julian Havil,
 //       Princeton, 2003.
 
-#ifndef _TR1_GAMMA_TCC
-#define _TR1_GAMMA_TCC 1
+#ifndef _GLIBCXX_TR1_GAMMA_TCC
+#define _GLIBCXX_TR1_GAMMA_TCC 1
 
 #include "special_function_util.h"
 
@@ -467,5 +467,5 @@
 }
 }
 
-#endif // _TR1_GAMMA_TCC
+#endif // _GLIBCXX_TR1_GAMMA_TCC
 

Attachment: CL_tr1_math_guard
Description: video/flv


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]