mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] egl: handle \r character when processing #includes
This commit is contained in:
parent
9f4afcd944
commit
c1a362f8d3
@ -14,7 +14,7 @@ pkg_check_modules(RENDERER_EGL_OPT IMPORTED_TARGET
|
|||||||
find_program(AWK gawk mawk original-awk awk)
|
find_program(AWK gawk mawk original-awk awk)
|
||||||
|
|
||||||
if(AWK MATCHES ".+-NOTFOUND")
|
if(AWK MATCHES ".+-NOTFOUND")
|
||||||
message(FATAL_ERROR "FATAL: some known version of awk couldn't be found (${AWK}).")
|
message(FATAL_ERROR "FATAL: some known version of awk couldn't be found (${AWK}).")
|
||||||
else()
|
else()
|
||||||
message(STATUS "Using awk: ${AWK}")
|
message(STATUS "Using awk: ${AWK}")
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
BEGIN { FS="\"" }
|
BEGIN { FS="\"" }
|
||||||
|
|
||||||
function process(line, second) {
|
function process(line, second) {
|
||||||
if (line ~ /^#include[ \t]*".+"[ \t]*$/) {
|
if (line ~ /^#include[ \t]*".+"[ \t\r]*$/) {
|
||||||
while (getline < second) {
|
while (getline < second) {
|
||||||
process($0, $2)
|
process($0, $2)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user