Don't bother checking for size_t, mode_t and off_t neither

The latter two are always defined in sys/types.h on all Unix systems and
we already define them for MSVC (which doesn't use configure anyhow).

The former type is always defined everywhere.
This commit is contained in:
Vadim Zeitlin
2021-07-28 21:09:32 +02:00
parent e8975eec72
commit 32d9b0413d
6 changed files with 2 additions and 76 deletions

View File

@@ -646,14 +646,8 @@ if(wxUSE_XLOCALE)
set(CMAKE_EXTRA_INCLUDE_FILES)
endif()
# Check size and availability of various types
set(SYSTYPES
size_t
wchar_t int long short
)
if(NOT MSVC)
list(APPEND SYSTYPES mode_t off_t)
endif()
# Check sizes of various types
set(SYSTYPES size_t wchar_t int long short)
foreach(SYSTYPE ${SYSTYPES})
string(TOUPPER ${SYSTYPE} SYSTYPE_UPPER)