summaryrefslogtreecommitdiff
path: root/games-rpg/freedink/files/freedink-109.6-odr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-rpg/freedink/files/freedink-109.6-odr.patch')
-rw-r--r--games-rpg/freedink/files/freedink-109.6-odr.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/games-rpg/freedink/files/freedink-109.6-odr.patch b/games-rpg/freedink/files/freedink-109.6-odr.patch
new file mode 100644
index 000000000000..560c3ddc6537
--- /dev/null
+++ b/games-rpg/freedink/files/freedink-109.6-odr.patch
@@ -0,0 +1,14 @@
+Only ever used as struct FF_Handle *, not seeing why this void is here.
+error: 'FastFileOpen' violates the C++ One Definition Rule [-Werror=odr]
+--- a/src/fastfile.cpp
++++ b/src/fastfile.cpp
+@@ -217,3 +217,3 @@
+
+-void *
++struct FF_Handle *
+ FastFileOpen(char *name)
+@@ -254,3 +254,3 @@
+ i->len = next_off - i->off;
+- return (void*)i;
++ return i;
+ }