File: 0001-Comment-out-a-backwards-compatibility-typedef.patch

package info (click to toggle)
libsigc%2B%2B-2.0 2.12.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,432 kB
  • sloc: cpp: 4,132; xml: 339; python: 196; makefile: 192; sh: 5
file content (29 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Daniel Burrows <Daniel_Burrows@alumni.brown.edu>
Date: Tue, 5 Apr 2011 21:58:01 -0700
Subject: Comment out a backwards compatibility typedef

This typedef doesn't work with g++ >= 4.3, and it's not required on Linux.

[Jonathan McDowell <noodles@earth.li>: Update to patch source file, not
 pregenerated version]
---
 sigc++/signal.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sigc++/macros/signal.h.m4 b/sigc++/macros/signal.h.m4
index 8f7ed2a..213ecdd 100644
--- a/sigc++/macros/signal.h.m4
+++ b/sigc++/macros/signal.h.m4
@@ -705,7 +705,11 @@ divert(0)
   //Compilers, such as older versions of SUN Forte C++, that do not allow this also often
   //do not allow a typedef to have the same name as a class in the typedef's definition.
   //For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build.
-  #define SIGC_TYPEDEF_REDEFINE_ALLOWED 1
+  //
+  // Debian-specific patch: gcc-4.3 does not allow this either, and the
+  // comments below say this is a backwards-compatibility typedef, so
+  // just don't enable this feature at all.
+  //#define SIGC_TYPEDEF_REDEFINE_ALLOWED 1
 #endif
 
 namespace sigc {