freebsd-ports/sysutils/bbapm/files/patch-Image.hh
Martin Wilke 630af28478 - Fix build with gcc 4.2
PR:		114079
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2007-06-29 08:32:39 +00:00

24 lines
482 B
C++

--- Image.hh.orig Sun Aug 15 07:43:55 1999
+++ Image.hh Sat Aug 4 20:52:40 2001
@@ -35,11 +35,21 @@
class BImage;
class BImageControl;
+#if 0
typedef struct BColor {
int allocated;
unsigned char red, green, blue;
unsigned long pixel;
};
+#else
+class BColor {
+public:
+ int allocated;
+ unsigned char red, green, blue;
+ unsigned long pixel;
+ BColor() { allocated = False; }
+};
+#endif
typedef struct BTexture {
BColor color, colorTo, hiColor, loColor;