Fixing gcc 3.3 compile failures -- fix for games/battleball
Simon Barner
barner at in.tum.de
Fri Jul 18 09:36:33 PDT 2003
-------------- next part --------------
--- Makefile.orig Fri Jul 18 17:46:10 2003
+++ Makefile Fri Jul 18 17:46:39 2003
@@ -21,11 +21,9 @@
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
-.include <bsd.port.pre.mk>
+CFLAGS += -Wno-deprecated
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
+.include <bsd.port.pre.mk>
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/battleball ${PREFIX}/bin
-------------- next part --------------
--- lib3d/general.h.orig Fri Sep 3 04:25:19 1999
+++ lib3d/general.h Fri Jul 18 17:42:41 2003
@@ -25,9 +25,15 @@
typedef unsigned int uint;
typedef unsigned long ulong;
+#ifdef __GNUC__
+#if __GNUC__ < 3
#define and &&
#define or ||
#define not !
+#endif
+
+// TODO - what about non-GNU C++ compilers?
+#endif
#define forii(limit) for (int i= 0; i <limit; i++)
#define forij(limit) for (int j= 0; j <limit; j++)
-------------- next part --------------
--- lib3d/xform.h.orig Fri Jul 18 17:28:08 2003
+++ lib3d/xform.h Fri Jul 18 17:26:11 2003
@@ -64,6 +64,7 @@
//===========================================================================
class tmtrx {
+ friend struct player;
typedef double fourby3[4][3];
fourby3 m;
-------------- 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-current/attachments/20030718/f16c4e7a/attachment.bin
More information about the freebsd-current
mailing list