From b0e5ee93809e9c19d0d9b0fc3e8a805edc1d262c Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 1 Jan 2007 00:00:25 +0000 Subject: [PATCH] - Fix build with gcc 4.X PR: ports/107369 Submitted by: Jeremy Karlson (maintainer) --- games/magiccube4d/files/patch-EventHandler.h | 11 +++++++++++ games/magiccube4d/files/patch-Machine.h | 11 +++++++++++ .../magiccube4d/files/{patch-aa => patch-MagicCube.h} | 0 games/magiccube4d/files/{patch-ac => patch-configure} | 0 4 files changed, 22 insertions(+) create mode 100644 games/magiccube4d/files/patch-EventHandler.h create mode 100644 games/magiccube4d/files/patch-Machine.h rename games/magiccube4d/files/{patch-aa => patch-MagicCube.h} (100%) rename games/magiccube4d/files/{patch-ac => patch-configure} (100%) diff --git a/games/magiccube4d/files/patch-EventHandler.h b/games/magiccube4d/files/patch-EventHandler.h new file mode 100644 index 000000000000..fe804d118066 --- /dev/null +++ b/games/magiccube4d/files/patch-EventHandler.h @@ -0,0 +1,11 @@ +--- EventHandler.h.orig Sat Dec 30 23:41:44 2006 ++++ EventHandler.h Sat Dec 30 23:42:05 2006 +@@ -165,7 +165,7 @@ + + int number_of_reference_stickers_needed; + int (*reference_stickers_needed)[4]; +- void (EventHandler::*what_to_do_after_got_reference_stickers) (void *arg = NULL); ++ void (EventHandler::*what_to_do_after_got_reference_stickers) (void *arg); + void* cur_ui_data; + + bool quick_mode; diff --git a/games/magiccube4d/files/patch-Machine.h b/games/magiccube4d/files/patch-Machine.h new file mode 100644 index 000000000000..6f2aff1ce4ec --- /dev/null +++ b/games/magiccube4d/files/patch-Machine.h @@ -0,0 +1,11 @@ +--- Machine.h.orig Sat Dec 30 23:43:10 2006 ++++ Machine.h Sat Dec 30 23:43:24 2006 +@@ -31,7 +31,7 @@ + { + public: + typedef void (EventHandler::*event_handler)(EventHandler::Event*, +- void *arg = 0); ++ void *arg); + virtual ~Machine() {}; + + static Machine* createMachine(EventHandler*, int& argc, char *argv[], diff --git a/games/magiccube4d/files/patch-aa b/games/magiccube4d/files/patch-MagicCube.h similarity index 100% rename from games/magiccube4d/files/patch-aa rename to games/magiccube4d/files/patch-MagicCube.h diff --git a/games/magiccube4d/files/patch-ac b/games/magiccube4d/files/patch-configure similarity index 100% rename from games/magiccube4d/files/patch-ac rename to games/magiccube4d/files/patch-configure