CMake: Remove <locale.h> test

We're not using the <locale.h> header anywhere besides including it
for no purpose, so we can drop the test (and the inclusion).
Additionally, the header is part of standard C++.
master
Nicolas Hake 2018-12-31 12:30:06 +01:00
parent 8298813a90
commit c638647227
2 changed files with 0 additions and 4 deletions

View File

@ -199,7 +199,6 @@ check_cxx_symbol_exists(vasprintf stdio.h HAVE_VASPRINTF)
include(CheckIncludeFileCXX)
include(CheckIncludeFilesCXX)
CHECK_INCLUDE_FILE_CXX(io.h HAVE_IO_H)
CHECK_INCLUDE_FILE_CXX(locale.h HAVE_LOCALE_H)
CHECK_INCLUDE_FILE_CXX(share.h HAVE_SHARE_H)
CHECK_INCLUDE_FILE_CXX(signal.h HAVE_SIGNAL_H)
CHECK_INCLUDE_FILE_CXX(stdint.h HAVE_STDINT_H)

View File

@ -33,9 +33,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_LOCALE_H
#include <clocale>
#endif
#ifdef USE_CONSOLE
#define DONCOFF 0