Fixing gcc 3.3 compile failures -- fix for math/topaz

Simon Barner barner at in.tum.de
Wed Jul 23 18:09:07 PDT 2003


It was suggested to me that my port was not too optimal :-) Here is a
updated version.

Cheers,
 Simon
-------------- next part --------------
--- topaz/tpv2ps.cc.orig	Fri Jun 27 14:35:40 2003
+++ topaz/tpv2ps.cc	Thu Jul 24 02:50:11 2003
@@ -31,8 +31,6 @@
 #include <math.h>
 #include <string>
 #include <time.h>
-#include <getopt.h>
-//char *optarg;
 
 extern int errno;
 #include "vectdefs.h"
@@ -63,31 +61,31 @@
 
 #define buffersize 1024
 
-char* entry[] = {
-  {"Times-Roman-Q"},
-  {"Times-Bold-Q"},
-  {"Times-Italic-Q"},
-  {"Times-BoldItalic-Q"},
-  {"Helvetica-Q"},
-  {"Helvetica-Bold-Q"},
-  {"Helvetica-Oblique-Q"},
-  {"Helvetica-BoldOblique-Q"},
-  {"Courier-Q"},
-  {"Courier-Bold-Q"},
-  {"Courier-Oblique-Q"},
-  {"Courier-BoldOblique-Q"},
-  {"Symbol"}
+static const char *entry[] = {
+  "Times-Roman-Q",
+  "Times-Bold-Q",
+  "Times-Italic-Q",
+  "Times-BoldItalic-Q",
+  "Helvetica-Q",
+  "Helvetica-Bold-Q",
+  "Helvetica-Oblique-Q",
+  "Helvetica-BoldOblique-Q",
+  "Courier-Q",
+  "Courier-Bold-Q",
+  "Courier-Oblique-Q",
+  "Courier-BoldOblique-Q",
+  "Symbol"
 };
 
-char* kentry[] = {
-  {"Ryumin-Light-H"},
-  {"Ryumin-Light-H"},
-  {"Ryumin-Light-H"},
-  {"Ryumin-Light-H"},
-  {"GothicBBB-Medium-H"},
-  {"GothicBBB-Medium-H"},
-  {"GothicBBB-Medium-H"},
-  {"GothicBBB-Medium-H"},
+static const char *kentry[] = {
+  "Ryumin-Light-H",
+  "Ryumin-Light-H",
+  "Ryumin-Light-H",
+  "Ryumin-Light-H",
+  "GothicBBB-Medium-H",
+  "GothicBBB-Medium-H",
+  "GothicBBB-Medium-H",
+  "GothicBBB-Medium-H",
 };
 
 double papery;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030724/d5fc60ac/attachment.bin


More information about the freebsd-ports mailing list