~ubuntu-branches/ubuntu/lucid/newt/lucid

« back to all changes in this revision

Viewing changes to debian/patches/700_define_true_false.patch

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-02-23 20:33:15 UTC
  • Revision ID: james.westby@ubuntu.com-20100223203315-dhp2s4fkbon29vr5
Tags: 0.52.10-5ubuntu1
* Define TRUE and FALSE, fixing build failure (thanks, Theppitak
  Karoonboonyanan; Debian bug #570663).
* Zero-initialise fribidi_log2vis' output buffer, since it no longer does
  so itself (thanks to Brad Jorsch for analysis; Debian bug #570581;
  LP: #526391).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ruN newt-0.52.10-old/newt.c newt-0.52.10/newt.c
 
2
--- newt-0.52.10-old/newt.c     2010-02-23 20:20:20.000000000 +0000
 
3
+++ newt-0.52.10/newt.c 2010-02-23 20:21:16.000000000 +0000
 
4
@@ -22,6 +22,13 @@
 
5
 #include <fribidi/fribidi.h>
 
6
 #include <dlfcn.h>
 
7
 
 
8
+#ifndef TRUE
 
9
+# define TRUE  1
 
10
+#endif
 
11
+#ifndef FALSE
 
12
+# define FALSE 0
 
13
+#endif
 
14
+
 
15
 /* No sense in enabling shaping if we don't have BIDI support. */
 
16
 typedef struct
 
17
 {