Check for _NL_TIME_FIRST_WEEKDAY in CMake build too

HAVE_NL_TIME_FIRST_WEEKDAY was never defined otherwise.
This commit is contained in:
Vadim Zeitlin
2026-04-07 23:21:56 +02:00
parent 40a322946c
commit 73d66e7aa7
+6
View File
@@ -591,6 +591,12 @@ if(wxUSE_DATETIME)
check_struct_has_member("struct tm" tm_gmtoff time.h WX_GMTOFF_IN_TM)
endif()
wx_check_cxx_source_compiles(
"nl_langinfo(_NL_TIME_FIRST_WEEKDAY);"
HAVE_NL_TIME_FIRST_WEEKDAY
langinfo.h
)
cmake_push_check_state(RESET)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS})
check_symbol_exists(dlopen dlfcn.h HAVE_DLOPEN)