Skip to content

Commit

Permalink
- fetch prototype to fix build with gcc3
Browse files Browse the repository at this point in the history
- link with CXX
  • Loading branch information
Christian Weisgerber committed Sep 28, 2002
1 parent d37b8f0 commit 93b52bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
15 changes: 11 additions & 4 deletions games/amph/patches/patch-Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile,v 1.3 2001/09/22 21:01:14 pvalchev Exp $
--- Makefile.orig Wed Sep 19 04:08:37 2001
+++ Makefile Wed Sep 19 04:10:37 2001
$OpenBSD: patch-Makefile,v 1.4 2002/09/28 15:24:00 naddy Exp $
--- Makefile.orig Wed Mar 28 11:11:39 2001
+++ Makefile Sat Sep 28 17:25:07 2002
@@ -3,8 +3,7 @@
#===============

Expand All @@ -20,7 +20,14 @@ $OpenBSD: patch-Makefile,v 1.3 2001/09/22 21:01:14 pvalchev Exp $
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)

#=======================================================
@@ -37,13 +36,13 @@ TOUCHHEADERS := ${MYCODEDIR}/*.h
@@ -31,19 +30,19 @@ SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADE

# makemake variables

-LINKER := g++
+LINKER := ${CXX}
DEPENDFLAGS := -g ${SEARCHDIRS}
TOUCHHEADERS := ${MYCODEDIR}/*.h

# C

Expand Down
11 changes: 11 additions & 0 deletions games/amph/patches/patch-src_Surface_cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$OpenBSD: patch-src_Surface_cpp,v 1.1 2002/09/28 15:24:00 naddy Exp $
--- src/Surface.cpp.orig Sat Sep 28 16:35:02 2002
+++ src/Surface.cpp Sat Sep 28 16:35:12 2002
@@ -3,6 +3,7 @@
#include "ShapeLd.hpp"
#include "Clut.hpp"
#include "ConstVal.hpp"
+#include <string.h>

const short kNoCharSpace = 20;
const char kNoCharChar = '_';

0 comments on commit 93b52bb

Please sign in to comment.