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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user