diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2003-06-24 21:40:19 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2003-06-24 21:40:19 +0000 |
commit | ece7b39c08f34842aec5b62875601c1e1a9445ef (patch) | |
tree | d4559465c685c52926ff12d392dc6bd9d108c0bb /media-gfx/transfig/files | |
parent | Added Japanese support. (diff) | |
download | gentoo-2-ece7b39c08f34842aec5b62875601c1e1a9445ef.tar.gz gentoo-2-ece7b39c08f34842aec5b62875601c1e1a9445ef.tar.bz2 gentoo-2-ece7b39c08f34842aec5b62875601c1e1a9445ef.zip |
gcc-3.3 related fix
Diffstat (limited to 'media-gfx/transfig/files')
-rw-r--r-- | media-gfx/transfig/files/transfig-3.2.4-gcc-3.3.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/media-gfx/transfig/files/transfig-3.2.4-gcc-3.3.patch b/media-gfx/transfig/files/transfig-3.2.4-gcc-3.3.patch new file mode 100644 index 000000000000..dd9f00a7e5f9 --- /dev/null +++ b/media-gfx/transfig/files/transfig-3.2.4-gcc-3.3.patch @@ -0,0 +1,37 @@ +diff -ruN transfig.3.2.4.orig/fig2dev/dev/gensvg.c transfig.3.2.4/fig2dev/dev/gensvg.c +--- transfig.3.2.4.orig/fig2dev/dev/gensvg.c 2003-06-24 23:13:43.000000000 +0200 ++++ transfig.3.2.4/fig2dev/dev/gensvg.c 2003-06-24 23:18:55.000000000 +0200 +@@ -692,16 +692,17 @@ + if (t->angle != 0) { + fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n", + (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle)); +- fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" font-family=\"%s\" +- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n", ++ fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\" " ++ "font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" " ++ "font-size=\"%d\" text-anchor=\"%s\" >\n", + rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)], + (t->font % 2 == 0 ? "normal" : "italic"), + (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)), + anchor[t->type]); + } + else +- fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\" +- font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n", ++ fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\" font-family=\"%s\" " ++ "font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n", + (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color), + family[(int) ceil ((t->font + 1) / 4)], + (t->font % 2 == 0 ? "normal" : "italic"), +diff -ruN transfig.3.2.4.orig/fig2dev/fig2dev.h transfig.3.2.4/fig2dev/fig2dev.h +--- transfig.3.2.4.orig/fig2dev/fig2dev.h 2003-06-24 23:13:43.000000000 +0200 ++++ transfig.3.2.4/fig2dev/fig2dev.h 2003-06-24 23:14:31.000000000 +0200 +@@ -22,7 +22,7 @@ + #include <sys/file.h> + #include <signal.h> + #include <string.h> +-#include <varargs.h> ++#include <stdarg.h> + #include <pwd.h> + #include <errno.h> + #include <time.h> |