Fix for build bustage on Solaris 2.3.
This commit is contained in:
Родитель
3d933328d4
Коммит
d9095adadc
|
@ -770,8 +770,7 @@ dnl the qsort routine under solaris is faulty
|
|||
_WARNINGS_CFLAGS=''
|
||||
_WARNINGS_CXXFLAGS=''
|
||||
if test "$OS_RELEASE" = "5.3"; then
|
||||
dnl So jmorecfg.h won't redefine boolean.
|
||||
AC_DEFINE(HAVE_BOOLEAN)
|
||||
AC_DEFINE(MUST_UNDEF_HAVE_BOOLEAN_AFTER_INCLUDES)
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
|
|
@ -252,6 +252,13 @@ typedef unsigned int JDIMENSION;
|
|||
* than fight.
|
||||
*/
|
||||
|
||||
/* For some reason, on SunOS 5.3 HAVE_BOOLEAN gets defined when using
|
||||
* gcc, but boolean doesn't. Even if you use -UHAVE_BOOLEAN, it still
|
||||
* gets reset somewhere.
|
||||
*/
|
||||
#if defined(MUST_UNDEF_HAVE_BOOLEAN_AFTER_INCLUDES) && defined(HAVE_BOOLEAN)
|
||||
#undef HAVE_BOOLEAN
|
||||
#endif
|
||||
#ifndef HAVE_BOOLEAN
|
||||
typedef unsigned char boolean;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче