To avoid M_PI_2 redefined warning in dvipsk:
--- writet1.c.orig Fri Nov 19 20:25:56 2004
+++ writet1.c Fri Nov 19 22:51:47 2004
@@ -51,8 +51,8 @@
static integer t1_fontname_offset;
#else /* writet1 used with dvips */
-#include "ptexmac.h"
#include "dvips.h"
+#include "ptexmac.h"
#undef fm_extend
#define fm_extend(f) 0
#undef fm_slant
Works both for dvipsk and pdftex.
Then there are the patches from Jason Riedy for teTeX, see
Subject: [PATCH] Build on Solaris 8 with Sun's compilers
Date: Thu, 28 Oct 2004 09:59:37 -0700
From: Jason Riedy
From: Jason Riedy
To: tetex-pretest@dbs.uni-hannover.de Here is a subset from his mail:
Some more things that have been adressed by people on the tetex-pretest
list are missing. Here is what should find its way into pdftex.
Thomas
--- /t/texlive/Build/source.development/TeX/texk/web2c/pdfetexdir/pdfetex.mk 2004-08-26 23:46:34.000000000 +0200
+++ /t/src/tetex-src/texk/web2c/pdfetexdir/pdfetex.mk 2004-11-03 22:09:50.000000000 +0100
@@ -19,7 +19,7 @@
# C file dependencies.
$(pdfetex_c) pdfetexcoerce.h pdfetexd.h: pdfetex.p $(web2c_texmf)
$(web2c) pdfetex
-pdfetexextra.c: lib/texmfmp.c
+pdfetexextra.c: pdfetexdir/pdfetexextra.h lib/texmfmp.c
sed s/TEX-OR-MF-OR-MP/pdfetex/ $(srcdir)/lib/texmfmp.c >$@
pdfetexdir/pdfetexextra.h: pdfetexdir/pdfetexextra.in pdftexdir/pdftex.version etexdir/etex.version
sed -e s/PDFTEX-VERSION/`cat pdftexdir/pdftex.version`/ \
@@ -90,7 +90,6 @@
$(dumpenv) $(MAKE) progname=pdflatex files="latex.ltx" prereq-check
$(dumpenv) ./pdfetex --progname=pdflatex --jobname=pdflatex --ini \*\\pdfoutput=1\\input latex.ltx
+#if defined(__cplusplus)
+extern "C" {
+#endif
/* Function types. */
typedef int avl_comparison_func (const void *avl_a, const void *avl_b,
@@ -112,4 +115,8 @@
void *avl_t_cur (struct avl_traverser *);
void *avl_t_replace (struct avl_traverser *, void *);
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* avl.h */
--- /t/texlive/Build/source.development/TeX/texk/web2c/pdftexdir/ChangeLog 2004-09-07 19:45:32.000000000 +0200
+++ /t/src/tetex-src/texk/web2c/pdftexdir/ChangeLog 2004-10-30 15:42:24.000000000 +0200
@@ -1,3 +1,8 @@
+2004-10-29 Jan Nieuwenhuizen
On 2004-11-19 23:08:51 +0100, Hartmut Henkel wrote:
libs/xpdf/xpdf/GlobalParams.h
applied
texk/dvipng/dvipng.h texk/dvipng/font.c texk/dvipng/fontmap.c
these are for the dvipng maintainers
texk/web2c/pdftexdir/avl.h
How to patch the last one, as it's a GPLed file? Does one need to change the name?
Why? I simply patch it. :-) Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
participants (3)
-
Hartmut Henkel
-
Martin Schröder
-
Thomas Esser