[Lsb-messages] /var/www/bzr/lsb/4.1/packaging r549: Define the new macros if they're missing (happens at least with gcc 4.1).

Jeff Licquia jeff at licquia.org
Tue Mar 27 17:37:52 UTC 2012


------------------------------------------------------------
revno: 549
committer: Jeff Licquia <jeff at licquia.org>
branch nick: packaging
timestamp: Tue 2012-03-27 13:37:52 -0400
message:
  Define the new macros if they're missing (happens at least with gcc 4.1).
modified:
  lsbdev-c++/gcc-denorm.patch
-------------- next part --------------
=== modified file 'lsbdev-c++/gcc-denorm.patch'
--- a/lsbdev-c++/gcc-denorm.patch	2012-03-26 15:08:40 +0000
+++ b/lsbdev-c++/gcc-denorm.patch	2012-03-27 17:37:52 +0000
@@ -1,7 +1,25 @@
 diff -ru gcc-4.1.0-orig/libstdc++-v3/include/std/std_limits.h gcc-4.1.0/libstdc++-v3/include/std/std_limits.h
 --- gcc-4.1.0-orig/libstdc++-v3/include/std/std_limits.h	2005-08-16 21:28:44.000000000 -0500
-+++ gcc-4.1.0/libstdc++-v3/include/std/std_limits.h	2012-03-25 19:10:01.890372376 -0400
-@@ -1007,7 +1007,7 @@
++++ gcc-4.1.0/libstdc++-v3/include/std/std_limits.h	2012-03-27 13:32:38.662417938 -0400
+@@ -145,6 +145,17 @@
+ #define __glibcxx_digits10(T) \
+   (__glibcxx_digits (T) * 643 / 2136)
+ 
++// LSB: define __FOO_HAS_DENORM__ on older gcc versions.
++#ifndef __FLT_HAS_DENORM__
++#  define __FLT_HAS_DENORM__ __FLT_DENORM_MIN__
++#endif
++#ifndef __DBL_HAS_DENORM__
++#  define __DBL_HAS_DENORM__ __DBL_DENORM_MIN__
++#endif
++#ifndef __LDBL_HAS_DENORM__
++#  define __LDBL_HAS_DENORM__ __LDBL_DENORM_MIN__
++#endif
++
+ 
+ namespace std
+ {
+@@ -1007,7 +1018,7 @@
        static const bool has_quiet_NaN = __FLT_HAS_QUIET_NAN__;
        static const bool has_signaling_NaN = has_quiet_NaN;
        static const float_denorm_style has_denorm
@@ -10,7 +28,7 @@
        static const bool has_denorm_loss = __glibcxx_float_has_denorm_loss;
  
        static float infinity() throw()
-@@ -1064,7 +1064,7 @@
+@@ -1064,7 +1075,7 @@
        static const bool has_quiet_NaN = __DBL_HAS_QUIET_NAN__;
        static const bool has_signaling_NaN = has_quiet_NaN;
        static const float_denorm_style has_denorm
@@ -19,7 +37,7 @@
        static const bool has_denorm_loss = __glibcxx_double_has_denorm_loss;
  
        static double infinity() throw()
-@@ -1121,7 +1121,7 @@
+@@ -1121,7 +1132,7 @@
        static const bool has_quiet_NaN = __LDBL_HAS_QUIET_NAN__;
        static const bool has_signaling_NaN = has_quiet_NaN;
        static const float_denorm_style has_denorm



More information about the lsb-messages mailing list