Check the size of the boolean type used by an external jpeg lib on Windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
24
configure.in
24
configure.in
@@ -2788,6 +2788,30 @@ if test "$wxUSE_LIBJPEG" != "no" ; then
|
||||
else
|
||||
dnl we are using the system library
|
||||
wxUSE_LIBJPEG=sys
|
||||
|
||||
if test "$wxUSE_MSW" = 1; then
|
||||
dnl boolean is defined by the jpeg headers and also by the
|
||||
dnl Windows headers of some compilers. This type has been
|
||||
dnl renamed in the builtin, so it is only an issue when
|
||||
dnl using an external jpeg lib on Windows.
|
||||
AC_CHECK_TYPES(
|
||||
[boolean],
|
||||
[
|
||||
AC_CHECK_SIZEOF(
|
||||
[boolean],
|
||||
[],
|
||||
[
|
||||
#undef HAVE_BOOLEAN
|
||||
#include <stdio.h>
|
||||
#include <jpeglib.h>
|
||||
])
|
||||
AC_DEFINE_UNQUOTED(
|
||||
[wxHACK_BOOLEAN],
|
||||
[wxInt`expr 8 \* $ac_cv_sizeof_boolean`])
|
||||
],
|
||||
[],
|
||||
[#include <windows.h>])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user