]> granicus.if.org Git - graphviz/commitdiff
Remove obsolete CMake isatty mangling of yacc output
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 14 Aug 2020 07:32:01 +0000 (09:32 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 18 Aug 2020 08:59:35 +0000 (10:59 +0200)
cmake/modify_cgraph_scan.cmake.in
lib/cgraph/CMakeLists.txt

index 3fda8f71a81cf9f1d17d62b5bed2366b293a5368..ea0e29dec236347c05270e6c5dea233cefaf40b7 100644 (file)
@@ -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}")
index 10a98365efd54c7edfbe88aedb85e7b4cb398bea..4e40be39b804a92ac14445a02274dddbf3cdfd06 100644 (file)
@@ -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"