openbsd-ports/x11/kde/office2/patches/patch-kchart_engine_h
espie 3b3b60a335 Initial port of koffice2, done 3 times over.
`Proof of concept', port doesn't really work yet.
- kpresenter crashes,
- all parts only run under koshell control,
- closing any document will crash koffice.

Apart from that, this looks usable.
2000-12-18 02:54:59 +00:00

21 lines
462 B
Plaintext

$OpenBSD: patch-kchart_engine_h,v 1.1.1.1 2000/12/18 02:54:59 espie Exp $
--- kchart/engine.h.orig Mon Dec 18 01:55:26 2000
+++ kchart/engine.h Mon Dec 18 02:32:51 2000
@@ -13,7 +13,16 @@
#include <qfont.h>
#include <qcolor.h>
+#ifdef __OpenBSD__
+#include <limits.h>
+#include <math.h>
+#define MAXSHORT SHRT_MAX
+#define MAXINT INT_MAX
+#define MAXDOUBLE DBL_MAX
+#else
#include <values.h>
+#endif
+
#include <kchart_part.h>
class KChartParameters;