]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gamma.tcc: Change include guard from _TR1_GAMMA_TCC to _GLIBCXX_TR1_GAMMA_TCC to...
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Thu, 20 Aug 2009 09:45:03 +0000 (09:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 20 Aug 2009 09:45:03 +0000 (09:45 +0000)
2009-08-20  Edward Smith-Rowland  <3dw4rd@verizon.net>

* include/tr1/gamma.tcc: Change include guard from _TR1_GAMMA_TCC
to _GLIBCXX_TR1_GAMMA_TCC to match the rest of the headers in tr1.
* include/tr1/exp_integral.tcc: Replace _TR1_GAMMA_TCC with
__numeric_constants<_Tp>::__gamma_e().

From-SVN: r150958

libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/exp_integral.tcc
libstdc++-v3/include/tr1/gamma.tcc

index 2ab32e3e839afc8344bfcfd7bbffa7fd7268957d..ce471fe6caa4c8ae513349e751e5c1468429557c 100644 (file)
@@ -1,3 +1,10 @@
+2009-08-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       * include/tr1/gamma.tcc: Change include guard from _TR1_GAMMA_TCC
+       to _GLIBCXX_TR1_GAMMA_TCC to match the rest of the headers in tr1.
+       * include/tr1/exp_integral.tcc: Replace _TR1_GAMMA_TCC with
+       __numeric_constants<_Tp>::__gamma_e().
+
 2009-08-17  Benjamin Kosnik  <bkoz@redhat.com>
 
        * testsuite/30_threads/packaged_task/requirements/typedefs.cc: New.
index 5b3af5d8e712c226ac7c5dd77a9fe67347463497..173cbdfc79f7ab2c68d82bad96775c53772b9582 100644 (file)
@@ -165,7 +165,7 @@ namespace tr1
             __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 f456da32b63f08c9a508ea1c525231738d558d41..b54e6436069018a15e30d01deac7faeaf70900b1 100644 (file)
@@ -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 @@ namespace tr1
 }
 }
 
-#endif // _TR1_GAMMA_TCC
+#endif // _GLIBCXX_TR1_GAMMA_TCC