CMake: Remove <direct.h> test

We're not using the <direct.h> header anywhere besides including it
for no purpose, so we can drop the test (and the inclusion).
master
Nicolas Hake 2018-12-31 12:20:39 +01:00
parent 15f4a06cd4
commit 8298813a90
3 changed files with 0 additions and 7 deletions

View File

@ -198,7 +198,6 @@ check_cxx_symbol_exists(vasprintf stdio.h HAVE_VASPRINTF)
############################################################################
include(CheckIncludeFileCXX)
include(CheckIncludeFilesCXX)
CHECK_INCLUDE_FILE_CXX(direct.h HAVE_DIRECT_H)
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)

View File

@ -5,9 +5,6 @@
/* Use backward-cpp to print stack traces on crash */
#cmakedefine HAVE_BACKWARD 1
/* Define to 1 if you have the <direct.h> header file. */
#cmakedefine HAVE_DIRECT_H 1
/* The backtrace function is declared in execinfo.h and works */
#cmakedefine HAVE_EXECINFO_H 1

View File

@ -23,9 +23,6 @@
#ifdef HAVE_IO_H
#include <io.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif
#ifdef _WIN32
#include "platform/C4windowswrapper.h"
#endif