Ticket #2804: patch-build__premake__premake4__src__host__lua-5.1.4__src__lauxlib.c

File patch-build__premake__premake4__src__host__lua-5.1.4__src__lauxlib.c, 514 bytes (added by Guido Falsi, 10 years ago)

patch needed to avoid error with clang 3.4.1

Line 
1--- build/premake/premake4/src/host/lua-5.1.4/src/lauxlib.c.orig 2014-09-20 13:29:01 UTC
2+++ build/premake/premake4/src/host/lua-5.1.4/src/lauxlib.c
3@@ -574,7 +574,8 @@
4 lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */
5 if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
6 /* skip eventual `#!...' */
7- while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
8+ while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0])
9+ ;
10 lf.extraline = 0;
11 }
12 ungetc(c, lf.f);