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)
|
||||
|
@@ -17,15 +17,6 @@
|
||||
/* the installation location prefix from configure */
|
||||
#cmakedefine wxINSTALL_PREFIX "@wxINSTALL_PREFIX@"
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#cmakedefine mode_t int
|
||||
|
||||
/* Define to `long' if <sys/types.h> doesn't define. */
|
||||
#cmakedefine off_t long
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> doesn't define. */
|
||||
#cmakedefine size_t unsigned
|
||||
|
||||
/* Define if ssize_t type is available. */
|
||||
#cmakedefine HAVE_SSIZE_T
|
||||
|
||||
|
Reference in New Issue
Block a user