C++ fixes for gcc3

This commit is contained in:
naddy 2002-10-09 12:21:43 +00:00
parent 1c0cd028f0
commit d88595dddd
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-level_cc,v 1.1 2002/10/09 12:21:43 naddy Exp $
--- level.cc.orig Wed Oct 9 13:34:28 2002
+++ level.cc Wed Oct 9 13:41:42 2002
@@ -75,7 +75,7 @@ typedef struct mission_node {
mission_node * missions;
-static int missionfiles (const struct dirent *file)
+static int missionfiles (struct dirent *file)
{
int len = strlen(file->d_name);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-screen_cc,v 1.1 2002/10/09 12:21:43 naddy Exp $
--- screen.cc.orig Wed Oct 9 13:43:55 2002
+++ screen.cc Wed Oct 9 13:44:10 2002
@@ -540,7 +540,7 @@ void scr_writetext(long x, long y, const
}
}
-void scr_putbar(int x, int y, int br, int h, unsigned char col = 0) {
+void scr_putbar(int x, int y, int br, int h, unsigned char col) {
SDL_Rect r;
r.w = br;
r.h = h;