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
To: tetex-pretest@dbs.uni-hannover.de
Here is a subset from his mail:
--- pdftoepdf.cc.orig Sat Jul 17 20:09:44 2004
+++ pdftoepdf.cc Fri Nov 19 22:38:33 2004
@@ -44,7 +44,6 @@
#include "Error.h"
#include "epdf.h"
-#include "avl.h"
static const char perforce_id[] =
"$Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/pdftoepdf.cc#49 $";
The avl.h isn't needed at all (it differs from Jason's).
--- epdf.h.orig Sat Jul 17 20:09:41 2004
+++ epdf.h Fri Nov 19 22:36:16 2004
@@ -97,16 +97,6 @@
/* config.c */
extern integer cfgpar(integer);
-/* avl.c */
-typedef int avl_comparison_func (const void *avl_a, const void *avl_b, void *avl_param);
-typedef void avl_item_func (void *avl_item, void *avl_param);
-extern struct avl_table *avl_create (avl_comparison_func *, void *, struct libavl_allocator *);
-extern void avl_destroy (struct avl_table *, avl_item_func *);
-extern void **avl_probe (struct avl_table *, void *);
-extern void *avl_insert (struct avl_table *, void *);
-extern void *avl_delete (struct avl_table *, const void *);
-extern void *avl_find (const struct avl_table *, const void *);
-
/* avlstuff.c */
extern void avl_put_obj (integer, integer);
extern integer avl_find_obj (integer, integer, integer);
More outstanding patches by Jason are on
libs/xpdf/xpdf/GlobalParams.h
texk/dvipng/dvipng.h
texk/dvipng/font.c
texk/dvipng/fontmap.c
texk/web2c/pdftexdir/avl.h
How to patch the last one, as it's a GPLed file? Does one need to change
the name?
Regards, Hartmut