Added a flag to CMakeLists.txt simply to point out that one can build without

support for ISO2022 natively. Of course, we've been doing this by default for
years with no ill effect, and all modern operating systems seem to support this
natively. It's probably best to keep this in here, unlike the other deletions.
This commit is contained in:
Jim Derry 2017-10-03 13:04:37 -04:00
parent a1e4dcc066
commit 67f7b77e1f
2 changed files with 7 additions and 1 deletions

View File

@ -236,6 +236,12 @@ if (TIDY_RC_NUMBER)
add_definitions ( -DRC_NUMBER="${TIDY_RC_NUMBER}" )
endif ()
# If your OS doesn't have native ISO2022 support, then build with this flag.
if (NO_NATIVE_ISO2022_SUPPORT)
add_definitions ( -DNO_NATIVE_ISO2022_SUPPORT=1 )
endif ()
# Delete me? Not used in Tidy source!
add_definitions ( -DHAVE_CONFIG_H )

View File

@ -1193,7 +1193,7 @@ static uint ReadCharFromStream( StreamIn* in )
return c;
}
#endif /* #ifndef NO_NATIVE_ISO2022_SUPPORT */
#endif /* NO_NATIVE_ISO2022_SUPPORT */
if ( in->encoding == UTF16LE )
{