Fix for build bustage on Solaris 2.3.

This commit is contained in:
briano%netscape.com 1999-12-18 00:13:27 +00:00
parent a66bc4d3ca
commit 2905ebcc71
2 changed files with 8 additions and 2 deletions

View File

@ -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
;;

View File

@ -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