-
Notifications
You must be signed in to change notification settings - Fork 16
Epiar, fix build with Clang #12
Copy link
Copy link
Open
Description
Hello i'm FreeBSD maintainer for Epiar
http://www.freshports.org/games/epiar/
Build failures with Clang have I solved with these patches
cat files/patch-Source-Engine-console.cpp
--- Source/Engine/console.cpp.orig 2012-10-27 10:18:51.000000000 +0200
+++ Source/Engine/console.cpp 2013-09-14 21:18:05.000000000 +0200
@@ -79,7 +79,6 @@
break;
case SDLK_RETURN:
case SDLK_KP_ENTER:
- case '\n': // this shouldn't be necessary but on os x the two above it don't seem to catch
RunCommand();
break;
case SDLK_BACKSPACE:
cat files/patch-Source-Lua-src-lauxlib.c
--- Source/Lua/src/lauxlib.c.orig 2012-10-27 10:18:51.000000000 +0200
+++ Source/Lua/src/lauxlib.c 2013-09-14 20:20:41.000000000 +0200
@@ -575,7 +575,7 @@
lf.f = fopen(filename, "rb"); /* reopen in binary mode */
if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
/* skip eventual `#!...' */
- while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
+ while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0])
lf.extraline = 0;
}
ungetc(c, lf.f);
cat files/patch-Source-UI-ui_dropdown.cpp
--- Source/UI/ui_dropdown.cpp.orig 2012-10-27 10:18:51.000000000 +0200
+++ Source/UI/ui_dropdown.cpp 2013-09-15 01:48:22.000000000 +0200
@@ -178,7 +178,7 @@
}
string Dropdown::GetText(){
- if(( selected < 0) || (selected >= options.size()) ) {
+ if(selected >= options.size()) {
// Invalid selection, likely because this is an empty dropdown list.
return "";
}
cat files/patch-Source-Utilities-log.cpp
--- Source/Utilities/log.cpp.orig 2012-10-27 10:18:51.000000000 +0200
+++ Source/Utilities/log.cpp 2013-10-11 00:14:27.000000000 +0200
@@ -10,6 +10,7 @@
#include "common.h"
#include "Utilities/log.h"
#include "Engine/hud.h"
+#include <unistd.h>
/**\class Log
* \brief Main logging facilities for the code base. */
Please add these patches in next Version 0.5.2.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels