~ubuntu-branches/ubuntu/utopic/tcm/utopic

« back to all changes in this revision

Viewing changes to debian/patches/15_fix_gcc_4_0.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2006-04-08 10:03:43 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060408100343-tzzrb9gv77f6cbw9
Tags: 2.20+TSQD-3
* Ack previous NMUs.
  - Added 30_amd64_null.dpatch from Adrian Knoth to fix segfaults on amd64.
    (Closes: #339040) (Thanks Norbert Tretkowski <nobse@debian.org>)
  - debian/Config.tmpl: Fix conditional syntax. (Closes: #355985)
    (Thanks Matej Vela <vela@debian.org>)
* Add 31_fix_gcc_4_1.dpatch: fix ugly C++ programming. Thanks to Martin
  Michlmayr <tbm@cyrius.com> for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 15_fix_gcc_4_0.dpatch by Otavio Salvador <otavio@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Fix FTBFS with GCC 4.0.
 
6
 
 
7
if [ $# -lt 1 ]; then
 
8
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
 
9
    exit 1
 
10
fi
 
11
 
 
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
 
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
 
14
 
 
15
case "$1" in
 
16
    -patch) patch -p1 ${patch_opts} < $0;;
 
17
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
 
18
    *)
 
19
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
 
20
        exit 1;;
 
21
esac
 
22
 
 
23
exit 0
 
24
 
 
25
@DPATCH@
 
26
--- tcm-2.20+TSQD.orig/src/sd/dv/erdiagram.c
 
27
+++ tcm-2.20+TSQD/src/sd/dv/erdiagram.c
 
28
@@ -43,6 +43,9 @@
 
29
 #include "replacedialog.h"
 
30
 #include "erdiagram.h"
 
31
 #include "menu.h"
 
32
+
 
33
+class Edge;
 
34
+class C1Edge;
 
35
  
 
36
 ERDiagram::ERDiagram(Config *c, ERWindow *d, ERViewer *v, ERGraph *g): 
 
37
                Diagram(c,d,v,g) {
 
38
--- tcm-2.20+TSQD.orig/src/sd/dv/function.h
 
39
+++ tcm-2.20+TSQD/src/sd/dv/function.h
 
40
@@ -19,8 +19,8 @@
 
41
 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
42
 // 02111-1307, USA.
 
43
 //-----------------------------------------------------------------------------
 
44
-#ifndef _FUNCTION_H
 
45
-#define _FUNCTION_H
 
46
+#ifndef _FUNCTION_CLASS_H
 
47
+#define _FUNCTION_CLASS_H
 
48
 
 
49
 #include "c1edge.h"
 
50
 class ERGraph;
 
51
--- tcm-2.20+TSQD.orig/src/ui/menu.c
 
52
+++ tcm-2.20+TSQD/src/ui/menu.c
 
53
@@ -217,7 +217,7 @@
 
54
                                        XmNindicatorType, XmONE_OF_MANY, 0);
 
55
                        }
 
56
                        // selected or not ?
 
57
-                       if ((int)items[i].userData & 0x1)
 
58
+                       if ((long)items[i].userData & 0x1)
 
59
                                XtVaSetValues(submenu, XmNset, True, 0);
 
60
 
 
61
                }
 
62
--- tcm-2.20+TSQD.orig/src/ui/application.h
 
63
+++ tcm-2.20+TSQD/src/ui/application.h
 
64
@@ -28,6 +28,7 @@
 
65
 class PrinterOptions;
 
66
 class Color;
 
67
 class Config;
 
68
+class MainWindow;
 
69
 
 
70
 /// generic window-based application class. See: MWidget.
 
71
 class Application: public MWidget {