tags 777854 + patch
thanks

Here's a fix for the GCC 5 build issue. Change extern inline to static to prevent redefinition. The package builds and links with GCC5 with this change.

Upstream may prefer to move to C99 instead, please see section
"Different semantics for inline functions" at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixes GCC5 build issue.
 Change extern inline function to static to prevent redefinition isseue.
 .
 freecraft (1:1.20-1.2) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Fixes GCC5 build issue.
Author: 'Nicholas Luedtke <nicholas.lued...@hp.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- freecraft-1.20.orig/src/libmodplug/stdafx.h
+++ freecraft-1.20/src/libmodplug/stdafx.h
@@ -86,7 +86,7 @@ inline void ProcessPlugins(int n) {}
 
 #include <string.h>
 
-extern inline long MulDiv (long a, long b, long c)
+static inline long MulDiv (long a, long b, long c)
 {
   // if (!c) return 0;
   return ((unsigned long long) a * (unsigned long long) b ) / c;

Reply via email to