From 97e54bdb9b513a1aeac7103b4daf45be8cd98346 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 21 Aug 2004 17:15:04 +0000 Subject: [PATCH] Check for socklen_t type using C++ mode (since gsocket.cpp is now C++ code). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.in b/configure.in index ab444e32fb..9f90291499 100644 --- a/configure.in +++ b/configure.in @@ -4951,6 +4951,10 @@ if test "$wxUSE_SOCKETS" = "yes" ; then dnl like mingw does.. -- RL if test "$TOOLKIT" != "MSW"; then dnl determine the type of third argument for getsockname + dnl This test needs to be done in C++ mode since gsocket.cpp now + dnl is C++ code and pointer cast that are possible even without + dnl warning in C still fail in C++. + AC_LANG_PUSH(C++) AC_CACHE_CHECK([what is the type of the third argument of getsockname], wx_cv_type_getsockname3, [ @@ -5011,6 +5015,7 @@ if test "$wxUSE_SOCKETS" = "yes" ; then else AC_DEFINE_UNQUOTED(SOCKLEN_T, $wx_cv_type_getsockname3) fi + AC_LANG_POP fi fi -- 2.47.2