From: Magnus Jacobsson Date: Fri, 14 Aug 2020 07:32:01 +0000 (+0200) Subject: Remove obsolete CMake isatty mangling of yacc output X-Git-Tag: 2.46.0~20^2^2~119^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5162bfe8e72624ef7988b217e289476325365810;p=graphviz Remove obsolete CMake isatty mangling of yacc output --- diff --git a/cmake/modify_cgraph_scan.cmake.in b/cmake/modify_cgraph_scan.cmake.in index 3fda8f71a..ea0e29dec 100644 --- a/cmake/modify_cgraph_scan.cmake.in +++ b/cmake/modify_cgraph_scan.cmake.in @@ -1,4 +1,3 @@ file(READ @CMAKE_CURRENT_BINARY_DIR@/scan.c file_contents) string(REPLACE "yy" "aag" file_contents "${file_contents}") -string(REPLACE "extern int isatty (int );" "" file_contents "${file_contents}") file(WRITE @CMAKE_CURRENT_BINARY_DIR@/scan.c "${file_contents}") diff --git a/lib/cgraph/CMakeLists.txt b/lib/cgraph/CMakeLists.txt index 10a98365e..4e40be39b 100644 --- a/lib/cgraph/CMakeLists.txt +++ b/lib/cgraph/CMakeLists.txt @@ -4,7 +4,6 @@ ADD_FLEX_BISON_DEPENDENCY(Scan Grammar) # Modify files generated by Bison and Flex, to match the Autotools build. # - Replace "yy" with "aag" in all three files -# - Remove declaration of the "isatty()" function from scan.c configure_file( "${TOP_SOURCE_DIR}/cmake/modify_cgraph_grammar.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/modify_cgraph_grammar.cmake"